(self, store=None)
| 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) |
nothing calls this directly
no test coverage detected