Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改COPY-FROM No. 2 jit #54920

Merged
merged 4 commits into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions python/paddle/jit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,7 @@ def load(path, **configs):
1. Load model saved by ``paddle.jit.save`` then performing inference and fine-tune training.

.. code-block:: python
:name: code-example1

import numpy as np
import paddle
Expand Down Expand Up @@ -1395,6 +1396,7 @@ def train(layer, loader, loss_fn, opt):
2. Load model saved by ``paddle.fluid.io.save_inference_model`` then performing and fine-tune training.

.. code-block:: python
:name: code-example2

import numpy as np
import paddle
Expand Down Expand Up @@ -1608,7 +1610,7 @@ def trace(layer, inputs):
TracedLayer object.

Examples:
.. code-block:: python:
.. code-block:: python

import paddle

Expand Down Expand Up @@ -1658,7 +1660,7 @@ def set_strategy(self, build_strategy=None, exec_strategy=None):
None

Examples:
.. code-block:: python:
.. code-block:: python

import paddle

Expand Down Expand Up @@ -1761,7 +1763,7 @@ def save_inference_model(self, path, feed=None, fetch=None, **kwargs):
None

Examples:
.. code-block:: python:
.. code-block:: python

import numpy as np
import paddle
Expand Down