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

Function with_variable_store

tensorflow/python/ops/variable_scope.py:1844–1851  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

1842
1843@tf_contextlib.contextmanager
1844def with_variable_store(store):
1845 store_collection = ops.get_collection_ref(_VARSTORE_KEY)
1846 old = list(store_collection)
1847 store_collection[:] = [store]
1848 try:
1849 yield
1850 finally:
1851 store_collection[:] = old
1852
1853
1854class EagerVariableStore(object):

Callers 1

as_defaultMethod · 0.85

Calls 1

get_collection_refMethod · 0.80

Tested by

no test coverage detected