未验证 提交 d39d8bee 编写于 作者: L Leo Chen 提交者: GitHub

unexpose tracer, test=develop (#22661)

上级 08b09f64
...@@ -49,7 +49,6 @@ __all__ += layers.__all__ ...@@ -49,7 +49,6 @@ __all__ += layers.__all__
__all__ += base.__all__ __all__ += base.__all__
__all__ += container.__all__ __all__ += container.__all__
__all__ += nn.__all__ __all__ += nn.__all__
__all__ += tracer.__all__
__all__ += parallel.__all__ __all__ += parallel.__all__
__all__ += checkpoint.__all__ __all__ += checkpoint.__all__
__all__ += learning_rate_scheduler.__all__ __all__ += learning_rate_scheduler.__all__
......
...@@ -20,12 +20,16 @@ from collections import defaultdict ...@@ -20,12 +20,16 @@ from collections import defaultdict
from paddle.fluid import core from paddle.fluid import core
from paddle.fluid import framework from paddle.fluid import framework
__all__ = ['Tracer']
class Tracer(core.Tracer): class Tracer(core.Tracer):
""" """
Python wrapper of dygraph tracer Tracer is used to execute and record the operators executed, to construct the
computation graph in dygraph model. Tracer has two mode, :code:`train_mode`
and :code:`eval_mode`. In :code:`train_mode`, Tracer would add backward network
automatically and perform AutoGrad by method :code:`loss.backward()`.
In :code:`eval_mode`, Tracer would not add backward network.
This is a low level API, users don't need to use it directly.
""" """
def __init__(self): def __init__(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册