Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_ordered_dict.py440 od.move_to_end('c')
442 od.move_to_end('c', False)
444 od.move_to_end('c', False)
446 od.move_to_end('e')
448 od.move_to_end('b', last=False)
451 od.move_to_end('x')
453 od.move_to_end('x', False)
458 od.move_to_end('c', last=False)
460 od.move_to_end('a', last=False)
464 od.move_to_end('a')
[all …]
Dtest_call.py34 od.move_to_end('a')
Dtest_dict.py1433 od.move_to_end('a')
Dtest_builtin.py2729 od.move_to_end('a')
/external/python/cpython3/Lib/test/test_json/
Dtest_default.py13 od.move_to_end('b')
/external/python/cachetools/src/cachetools/
D__init__.py152 self.__order.move_to_end(key)
233 self.__order.move_to_end(key)
270 self.__order.move_to_end(key, last=False)
496 self.__links.move_to_end(key)
/external/pytorch/torch/optim/
Doptimizer.py600 self._optimizer_state_dict_pre_hooks.move_to_end(handle.id, last=False)
634 self._optimizer_state_dict_post_hooks.move_to_end(handle.id, last=False)
793 self._optimizer_load_state_dict_pre_hooks.move_to_end(handle.id, last=False)
827 …self._optimizer_load_state_dict_post_hooks.move_to_end(handle.id, last=False) # type: ignore[attr…
/external/python/cpython3/Doc/library/
Dcollections.rst1122 * :class:`OrderedDict` has a :meth:`move_to_end` method to efficiently
1125 A regular :class:`dict` can emulate OrderedDict's ``od.move_to_end(k,
1130 OrderedDict's ``od.move_to_end(k, last=False)`` which moves the key
1150 .. method:: move_to_end(key, last=True)
1160 >>> d.move_to_end('b')
1163 >>> d.move_to_end('b', last=False)
1208 self.move_to_end(key)
1229 self.cache.move_to_end(args)
1261 self.cache.move_to_end(args)
1266 self.requests.move_to_end(args)
/external/pytorch/torch/nn/modules/
Dmodule.py1388 … self._backward_pre_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
1476 self._backward_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
1640 self._forward_pre_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
1709 self._forward_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
/external/python/cpython3/Misc/NEWS.d/
D3.6.1rc1.rst539 move_to_end() method. Contributed by Andra Bogildea.
D3.5.1rc1.rst408 Fixed a bug in C implementation of OrderedDict.move_to_end() that caused
D3.5.3rc1.rst482 move_to_end() method. Contributed by Andra Bogildea.
D3.6.0a1.rst2666 Fixed a bug in C implementation of OrderedDict.move_to_end() that caused
/external/python/cpython3/Lib/
Dinspect.py2086 new_params.move_to_end(param_name)
2088 new_params.move_to_end(param_name)
/external/python/cpython3/Lib/collections/
D__init__.py191 def move_to_end(self, key, last=True): member in OrderedDict
/external/pytorch/torch/_dynamo/
Dutils.py362 self.set.move_to_end(key, last=True)
/external/python/cpython3/Doc/whatsnew/
D3.2.rst886 :meth:`~collections.OrderedDict.move_to_end` which takes an existing key and
900 >>> d.move_to_end('X')
/external/pytorch/test/dynamo/
Dtest_misc.py10258 d.move_to_end("foo")