Skip to content

Commit

Permalink
[xdoctest][task skip_no_reason 8-11] add skip reason for jit sample c…
Browse files Browse the repository at this point in the history
…ode (#57676)
  • Loading branch information
SigureMo authored Sep 27, 2023
1 parent a526c18 commit 363d8b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion python/paddle/jit/dy2static/convert_call_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def convert_call(func):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> from paddle.jit.dy2static import Call
Expand Down
14 changes: 7 additions & 7 deletions python/paddle/jit/dy2static/program_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def rollback(self):
Example::
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> class Net(paddle.nn.Layer):
Expand Down Expand Up @@ -906,7 +906,7 @@ def concrete_program(self):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> from paddle.jit import to_static
>>> from paddle.static import InputSpec
Expand Down Expand Up @@ -1783,7 +1783,7 @@ def enable(self, enable_to_static):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> def func(x):
... if paddle.mean(x) > 0:
Expand Down Expand Up @@ -1826,7 +1826,7 @@ def get_output(self, dygraph_func, *args, **kwargs):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> def func(x):
... if paddle.mean(x) > 0:
Expand Down Expand Up @@ -1909,7 +1909,7 @@ def get_func(self, dygraph_func):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> def func(x):
... if paddle.mean(x) > 0:
Expand Down Expand Up @@ -1958,7 +1958,7 @@ def get_program(self, dygraph_func, *args, **kwargs):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> def func(x):
... if paddle.mean(x) > 0:
Expand Down Expand Up @@ -2025,7 +2025,7 @@ def get_code(self, dygraph_func):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import paddle
>>> def func(x):
... if paddle.mean(x) > 0:
Expand Down
4 changes: 2 additions & 2 deletions python/paddle/jit/translated_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ class TranslatedLayer(layers.Layer):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import numpy as np
>>> import paddle
>>> import paddle.nn as nn
Expand Down Expand Up @@ -1526,7 +1526,7 @@ def program(self, method_name='forward'):
Examples:
.. code-block:: python
>>> # doctest: +SKIP
>>> # doctest: +SKIP('`paddle.jit.to_static` can not run in xdoctest')
>>> import numpy as np
>>> import paddle
>>> from paddle import nn
Expand Down

0 comments on commit 363d8b0

Please sign in to comment.