disable_prim¶
- paddle.incubate.autograd. disable_prim ( ) [source]
-
Note
ONLY available in the static graph mode.
Turns OFF automatic differentiation mechanism based on automatic differential basic operators.
Examples
>>> import paddle >>> from paddle.incubate.autograd import enable_prim, disable_prim, prim_enabled >>> paddle.enable_static() >>> enable_prim() >>> print(prim_enabled()) True >>> disable_prim() >>> print(prim_enabled()) False