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

Function disable_resource_variables

tensorflow/python/ops/variable_scope.py:262–270  ·  view source on GitHub ↗

Opts out of resource variables. If your code needs tf.disable_resource_variables() to be called to work properly please file a bug.

()

Source from the content-addressed store, hash-verified

260 None, "non-resource variables are not supported in the long term")
261@tf_export(v1=["disable_resource_variables"])
262def 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
273class _VariableStore(object):

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
get_cellMethod · 0.45

Tested by

no test coverage detected