未验证 提交 a02e6dbd 编写于 作者: G gouzil 提交者: GitHub

修改COPY-FROM No. 2 jit (#54920)

* [jit] add copy-from; test=document_fix

* [jit] add copy-from; test=document_fix

* fix TracedLayer
上级 9ed8bafd
...@@ -1308,6 +1308,7 @@ def load(path, **configs): ...@@ -1308,6 +1308,7 @@ def load(path, **configs):
1. Load model saved by ``paddle.jit.save`` then performing inference and fine-tune training. 1. Load model saved by ``paddle.jit.save`` then performing inference and fine-tune training.
.. code-block:: python .. code-block:: python
:name: code-example1
import numpy as np import numpy as np
import paddle import paddle
...@@ -1395,6 +1396,7 @@ def load(path, **configs): ...@@ -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. 2. Load model saved by ``paddle.fluid.io.save_inference_model`` then performing and fine-tune training.
.. code-block:: python .. code-block:: python
:name: code-example2
import numpy as np import numpy as np
import paddle import paddle
...@@ -1608,7 +1610,7 @@ class TracedLayer: ...@@ -1608,7 +1610,7 @@ class TracedLayer:
TracedLayer object. TracedLayer object.
Examples: Examples:
.. code-block:: python: .. code-block:: python
import paddle import paddle
...@@ -1658,7 +1660,7 @@ class TracedLayer: ...@@ -1658,7 +1660,7 @@ class TracedLayer:
None None
Examples: Examples:
.. code-block:: python: .. code-block:: python
import paddle import paddle
...@@ -1761,7 +1763,7 @@ class TracedLayer: ...@@ -1761,7 +1763,7 @@ class TracedLayer:
None None
Examples: Examples:
.. code-block:: python: .. code-block:: python
import numpy as np import numpy as np
import paddle import paddle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册