diff --git a/python/paddle/jit/dy2static/convert_call_func.py b/python/paddle/jit/dy2static/convert_call_func.py index c6b8169b7c545..22ca5e756568a 100644 --- a/python/paddle/jit/dy2static/convert_call_func.py +++ b/python/paddle/jit/dy2static/convert_call_func.py @@ -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 diff --git a/python/paddle/jit/dy2static/program_translator.py b/python/paddle/jit/dy2static/program_translator.py index 42d0049f8a368..e9709fb06e10a 100644 --- a/python/paddle/jit/dy2static/program_translator.py +++ b/python/paddle/jit/dy2static/program_translator.py @@ -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): @@ -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 @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/python/paddle/jit/translated_layer.py b/python/paddle/jit/translated_layer.py index fce3211f23878..766e72e0553e8 100644 --- a/python/paddle/jit/translated_layer.py +++ b/python/paddle/jit/translated_layer.py @@ -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 @@ -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