Home
last modified time | relevance | path

Searched refs:WeakKeyDictionary (Results 1 – 25 of 89) sorted by relevance

1234

/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_weakref.py931 d = weakref.WeakKeyDictionary()
1237 self.check_len_cycles(weakref.WeakKeyDictionary, lambda k: (k, 1))
1267 self.check_len_race(weakref.WeakKeyDictionary, lambda k: (k, 1))
1536 dict = weakref.WeakKeyDictionary({o:364})
1541 dict = weakref.WeakKeyDictionary({o:364})
1542 dict2 = weakref.WeakKeyDictionary(dict)
1546 dict = weakref.WeakKeyDictionary()
1605 self.check_popitem(weakref.WeakKeyDictionary,
1630 self.check_setdefault(weakref.WeakKeyDictionary,
1707 self.check_update(weakref.WeakKeyDictionary,
[all …]
/aosp_15_r20/external/pytorch/torch/jit/
H A D_state.py98 _jit_caching_layer: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()
99 _jit_function_overload_caching: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()
/aosp_15_r20/external/python/cpython2/Lib/test/
Dtest_weakref.py822 d = weakref.WeakKeyDictionary()
963 self.check_len_cycles(weakref.WeakKeyDictionary, lambda n, k: (k, n))
993 self.check_len_race(weakref.WeakKeyDictionary, lambda k: (k, 1))
1216 dict = weakref.WeakKeyDictionary({o:364})
1221 dict = weakref.WeakKeyDictionary({o:364})
1222 dict2 = weakref.WeakKeyDictionary(dict)
1226 dict = weakref.WeakKeyDictionary()
1274 self.check_popitem(weakref.WeakKeyDictionary,
1299 self.check_setdefault(weakref.WeakKeyDictionary,
1341 self.check_update(weakref.WeakKeyDictionary,
[all …]
/aosp_15_r20/external/python/cpython2/Doc/library/
Dweakref.rst38 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` classes supplied by
47 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` use weak references
140 .. class:: WeakKeyDictionary([dict])
150 Caution: Because a :class:`WeakKeyDictionary` is built on top of a Python
152 difficult to ensure for a :class:`WeakKeyDictionary` because actions
156 :class:`WeakKeyDictionary` objects have the following additional methods. These
164 .. method:: WeakKeyDictionary.iterkeyrefs()
171 .. method:: WeakKeyDictionary.keyrefs()
193 :meth:`keyrefs` methods of :class:`WeakKeyDictionary` objects.
/aosp_15_r20/external/pytorch/torch/autograd/
H A Dgraph.py652 self.cloned: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()
653 self.original: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()
/aosp_15_r20/external/python/cpython3/Doc/library/
Dweakref.rst41 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` classes supplied by
50 :class:`WeakKeyDictionary` and :class:`WeakValueDictionary` use weak references
55 :class:`WeakKeyDictionary` does.
167 .. class:: WeakKeyDictionary([dict])
183 >>> d = weakref.WeakKeyDictionary()
193 >>> d = weakref.WeakKeyDictionary()
202 :class:`WeakKeyDictionary` objects have an additional method that
210 .. method:: WeakKeyDictionary.keyrefs()
224 same issues as the :meth:`keyrefs` method of :class:`WeakKeyDictionary`
/aosp_15_r20/external/python/cpython3/Lib/multiprocessing/dummy/
D__init__.py39 self._children = weakref.WeakKeyDictionary()
66 current_process()._children = weakref.WeakKeyDictionary()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/multiprocessing/dummy/
D__init__.py39 self._children = weakref.WeakKeyDictionary()
66 current_process()._children = weakref.WeakKeyDictionary()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/multiprocessing/dummy/
D__init__.py39 self._children = weakref.WeakKeyDictionary()
66 current_process()._children = weakref.WeakKeyDictionary()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/multiprocessing/dummy/
D__init__.py39 self._children = weakref.WeakKeyDictionary()
66 current_process()._children = weakref.WeakKeyDictionary()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/multiprocessing/dummy/
D__init__.py39 self._children = weakref.WeakKeyDictionary()
66 current_process()._children = weakref.WeakKeyDictionary()
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/multiprocessing/dummy/
H A D__init__.py39 self._children = weakref.WeakKeyDictionary()
66 current_process()._children = weakref.WeakKeyDictionary()
/aosp_15_r20/external/python/cpython2/Lib/multiprocessing/dummy/
D__init__.py66 self._children = weakref.WeakKeyDictionary()
97 current_process()._children = weakref.WeakKeyDictionary()
/aosp_15_r20/external/pytorch/torch/utils/
H A Dmodule_tracker.py61 self._known_modules: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()
/aosp_15_r20/external/pytorch/torch/distributed/_tools/
H A Dmod_tracker.py59 self._known_modules: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()
/aosp_15_r20/external/pytorch/torch/fx/experimental/
H A Dproxy_tensor.py40 from weakref import WeakKeyDictionary
1397 self.symnode_tracker = weakref.WeakKeyDictionary()
1523 self.proxy_paths: WeakKeyDictionary[_AttrProxy, str] = WeakKeyDictionary()
1524 self.attr_proxy_map: WeakKeyDictionary[Module, _AttrProxy] = WeakKeyDictionary()
1525 self.proxy_modules: WeakKeyDictionary[_AttrProxy, Module] = WeakKeyDictionary()
/aosp_15_r20/external/pytorch/torch/_higher_order_ops/
H A Deffects.py5 from weakref import WeakKeyDictionary
27 SIDE_EFFECTS: "WeakKeyDictionary[OpType, _EffectType]" = WeakKeyDictionary(
/aosp_15_r20/external/tensorflow/tensorflow/python/distribute/
H A Dmirrored_run.py72 _cfer_fn_cache[strategy] = weakref.WeakKeyDictionary()
105 _cfer_fn_cache = weakref.WeakKeyDictionary()
/aosp_15_r20/external/python/cpython2/Lib/
Dweakref.py319 class WeakKeyDictionary(UserDict.UserDict): class
372 new = WeakKeyDictionary()
/aosp_15_r20/external/pytorch/torch/distributed/fsdp/
H A D_common_utils.py65 _MODULE_TO_INP_DTYPE: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()
/aosp_15_r20/external/tensorflow/tensorflow/python/eager/
H A Ddef_function.py176 self._detectors = weakref.WeakKeyDictionary() # GUARDED_BY(self._lock)
603 self._descriptor_cache = weakref.WeakKeyDictionary()
625 self._descriptor_cache = weakref.WeakKeyDictionary()
/aosp_15_r20/external/tensorflow/tensorflow/python/autograph/pyct/
H A Dcache.py34 self._cache = weakref.WeakKeyDictionary()
/aosp_15_r20/external/tensorflow/tensorflow/python/framework/
H A Drandom_seed.py31 _graph_to_seed_dict = weakref.WeakKeyDictionary()
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/
H A Dsignals.py41 _results = weakref.WeakKeyDictionary()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/unittest/
Dsignals.py41 _results = weakref.WeakKeyDictionary()

1234