Disabling v2 in the disable_v2_behavior() method
PiperOrigin-RevId: 299012811 Change-Id: I311f4b8a6ecbabb658717fff248bea072ff7a366
This commit is contained in:
parent
3b6251b6cc
commit
3006330ea0
@ -90,6 +90,7 @@ def disable_v2_behavior():
|
||||
User can call this function to disable 2.x behavior during complex migrations.
|
||||
"""
|
||||
_v2_behavior_usage_gauge.get_cell("disable").set(True)
|
||||
tf2.disable()
|
||||
ops.disable_eager_execution()
|
||||
tensor_shape.disable_v2_tensorshape() # Also switched by tf2
|
||||
variable_scope.disable_resource_variables()
|
||||
|
Loading…
Reference in New Issue
Block a user