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

Method __init__

tensorflow/python/ops/variable_scope.py:1874–1883  ·  view source on GitHub ↗
(self, store=None)

Source from the content-addressed store, hash-verified

1872 """
1873
1874 def __init__(self, store=None):
1875 if store is not None:
1876 if not store._store_eager_variables: # pylint: disable=protected-access
1877 raise ValueError("Cannot construct EagerVariableStore from a "
1878 "VariableStore object that does not hold eager "
1879 "variables.")
1880 self._store = store
1881 else:
1882 self._store = _VariableStore()
1883 self._store._store_eager_variables = True # pylint: disable=protected-access
1884
1885 def as_default(self):
1886 return with_variable_store(self._store)

Callers

nothing calls this directly

Calls 1

_VariableStoreClass · 0.85

Tested by

no test coverage detected