MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / disable_v2_tensorshape

Function disable_v2_tensorshape

tensorflow/python/framework/tensor_shape.py:88–95  ·  view source on GitHub ↗

Disables the V2 TensorShape behavior and reverts to V1 behavior. See docstring for `enable_v2_tensorshape` for details about the new behavior.

()

Source from the content-addressed store, hash-verified

86
87@tf_export(v1=["disable_v2_tensorshape"])
88def disable_v2_tensorshape():
89 """Disables the V2 TensorShape behavior and reverts to V1 behavior.
90
91 See docstring for `enable_v2_tensorshape` for details about the new behavior.
92 """
93 global _TENSORSHAPE_V2_OVERRIDE # pylint: disable=invalid-name
94 _TENSORSHAPE_V2_OVERRIDE = False
95 _api_usage_gauge.get_cell().set(False)
96
97
98@tf_export(

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
get_cellMethod · 0.45

Tested by

no test coverage detected