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

[xdoctest][task skip_no_reason 8-11] add skip reason for jit sample code #57676

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
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
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 @@ -1782,7 +1782,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 @@ -1825,7 +1825,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 @@ -1908,7 +1908,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 @@ -1957,7 +1957,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 @@ -2024,7 +2024,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