From a02e6dbdde09b62bab83db19b38edc8cfd90bea2 Mon Sep 17 00:00:00 2001 From: gouzil <66515297+gouzil@users.noreply.github.com> Date: Fri, 7 Jul 2023 18:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9COPY-FROM=20No.=202=20jit=20(?= =?UTF-8?q?#54920)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [jit] add copy-from; test=document_fix * [jit] add copy-from; test=document_fix * fix TracedLayer --- python/paddle/jit/api.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/paddle/jit/api.py b/python/paddle/jit/api.py index 827bb9806a1..c12d54e5351 100644 --- a/python/paddle/jit/api.py +++ b/python/paddle/jit/api.py @@ -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 @@ -1395,6 +1396,7 @@ def load(path, **configs): 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 @@ -1608,7 +1610,7 @@ class TracedLayer: TracedLayer object. Examples: - .. code-block:: python: + .. code-block:: python import paddle @@ -1658,7 +1660,7 @@ class TracedLayer: None Examples: - .. code-block:: python: + .. code-block:: python import paddle @@ -1761,7 +1763,7 @@ class TracedLayer: None Examples: - .. code-block:: python: + .. code-block:: python import numpy as np import paddle -- GitLab