Home
last modified time | relevance | path

Searched refs:_wrap_key (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/python/training/tracking/
Dobject_identity.py72 def _wrap_key(self, key): member in ObjectIdentityDictionary
76 return self._storage[self._wrap_key(key)]
79 self._storage[self._wrap_key(key)] = value
82 del self._storage[self._wrap_key(key)]
95 def _wrap_key(self, key): member in ObjectIdentityWeakKeyDictionary
116 self._storage = set([self._wrap_key(obj) for obj in list(*args)])
118 def _wrap_key(self, key): member in ObjectIdentitySet
122 return self._wrap_key(key) in self._storage
125 self._storage.discard(self._wrap_key(key))
128 self._storage.add(self._wrap_key(key))
[all …]