Disables the V2 TensorShape behavior and reverts to V1 behavior. See docstring for `enable_v2_tensorshape` for details about the new behavior.
()
| 86 | |
| 87 | @tf_export(v1=["disable_v2_tensorshape"]) |
| 88 | def 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( |