Opts out of resource variables. If your code needs tf.disable_resource_variables() to be called to work properly please file a bug.
()
| 260 | None, "non-resource variables are not supported in the long term") |
| 261 | @tf_export(v1=["disable_resource_variables"]) |
| 262 | def disable_resource_variables(): |
| 263 | """Opts out of resource variables. |
| 264 | |
| 265 | If your code needs tf.disable_resource_variables() to be called to work |
| 266 | properly please file a bug. |
| 267 | """ |
| 268 | global _DEFAULT_USE_RESOURCE |
| 269 | _DEFAULT_USE_RESOURCE = False |
| 270 | _api_usage_gauge.get_cell().set(False) |
| 271 | |
| 272 | |
| 273 | class _VariableStore(object): |