disable_dygraph

paddle.fluid.disable_dygraph()[source]

This function disables dynamic graph mode.

Returns

None

Examples

import paddle.fluid as fluid

fluid.enable_dygraph()  # Now we are in dygragh mode
print(fluid.in_dygraph_mode())  # True
fluid.disable_dygraph()
print(fluid.in_dygraph_mode())  # False