Skip to content

Commit

Permalink
[Docathon][Fix System Message No.3] 修复hapi/model.py中的文档格式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieHuang2008 committed Nov 27, 2023
1 parent 51583e6 commit 42cf185
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/paddle/hapi/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,7 @@ def fit(
.. code-block:: python
:name: code-example3
>>> # doctest: +TIMEOUT(25)
>>> import paddle
>>> import paddle.vision.transforms as T
>>> from paddle.vision.datasets import MNIST
Expand Down Expand Up @@ -1861,12 +1862,14 @@ def fit(
... batch_size=64,
... save_dir='mnist_checkpoint')
...
2. An example use DataLoader, batch size and shuffle is set in
DataLoader.
.. code-block:: python
:name: code-example4
>>> # doctest: +TIMEOUT(25)
>>> import paddle
>>> import paddle.vision.transforms as T
>>> from paddle.vision.datasets import MNIST
Expand Down

0 comments on commit 42cf185

Please sign in to comment.