Created by: liym27
PR types
New features
PR changes
Others
Describe
Add debugging and logging mechanism for dygraph to static graph
- Add logs in the conversion of function, and unified log information, clear and easy to understand. For example:
2020-08-26 11:09:42,088-Level 2: Whitelist: <paddle.fluid.dygraph.nn.Linear object at 0x13306dd70> is part of Paddle module and does not have to be transformed.
-
Add function
set_verbosity(level=0)
for user to set the verbosity level for dygraph to static graph. There are two means to set the logging verbosity:- Call function
set_verbosity
- Set environment variable
TRANSLATOR_VERBOSITY
- Call function
-
Add function
set_code_level(level)
for user to set the level to print code from specific Ast Transformer.