(store)
| 1842 | |
| 1843 | @tf_contextlib.contextmanager |
| 1844 | def 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 | |
| 1854 | class EagerVariableStore(object): |
no test coverage detected