Home
last modified time | relevance | path

Searched refs:lru_cache (Results 1 – 25 of 36) sorted by relevance

12

/external/yapf/yapf/yapflib/
Dformat_token.py231 @py3compat.lru_cache()
260 @py3compat.lru_cache()
268 @py3compat.lru_cache()
274 @py3compat.lru_cache()
288 @py3compat.lru_cache()
293 @py3compat.lru_cache()
306 @py3compat.lru_cache()
322 @py3compat.lru_cache()
327 @py3compat.lru_cache()
Dpy3compat.py33 lru_cache = functools.lru_cache variable
55 def lru_cache(maxsize=128, typed=False): function
/external/tensorflow/tensorflow/core/util/
Dmkl_util_test.cc91 LRUCache<int> lru_cache(capacity); in TEST() local
95 lru_cache.SetOp(std::to_string(k), new int(k)); in TEST()
101 EXPECT_EQ(nullptr, lru_cache.GetOp(std::to_string(k))); in TEST()
107 int* int_ptr = lru_cache.GetOp(std::to_string(k)); in TEST()
113 lru_cache.Clear(); in TEST()
117 EXPECT_EQ(nullptr, lru_cache.GetOp(std::to_string(k))); in TEST()
Dmkl_util.h2176 auto& lru_cache = MklPrimitiveFactory<T>::GetLRUCache(); in GetOp() local
2177 return lru_cache.GetOp(key); in GetOp()
2181 auto& lru_cache = MklPrimitiveFactory<T>::GetLRUCache(); in SetOp() local
2182 lru_cache.SetOp(key, op); in SetOp()
/external/python/cpython3/Lib/test/
Dtest_functools.py1143 f = self.module.lru_cache(maxsize=20)(orig)
1181 @self.module.lru_cache(0)
1197 @self.module.lru_cache(1)
1213 @self.module.lru_cache(2)
1238 @self.module.lru_cache(maxsize=10)
1262 @self.module.lru_cache(maxsize=1)
1297 builtins.len = self.module.lru_cache(4)(len)
1305 @functools.lru_cache()
1317 @functools.lru_cache(maxsize=None)
1321 @functools.lru_cache(maxsize=10)
[all …]
Dtest_timeout.py15 @functools.lru_cache()
/external/python/cpython3/Lib/
Dfnmatch.py38 @functools.lru_cache(maxsize=256, typed=True)
Dipaddress.py1320 @functools.lru_cache()
1332 @functools.lru_cache()
1545 @functools.lru_cache()
1971 @functools.lru_cache()
Dre.py297 @functools.lru_cache(_MAXCACHE)
Dfunctools.py445 def lru_cache(maxsize=128, typed=False): function
Dtyping.py242 cached = functools.lru_cache()(func)
Dpathlib.py460 _make_selector = functools.lru_cache()(_make_selector)
/external/python/cpython3/Doc/library/
Dfunctools.rst46 .. decorator:: lru_cache(maxsize=128, typed=False)
95 @lru_cache(maxsize=32)
118 @lru_cache(maxsize=None)
410 (e.g. bypassing a caching decorator such as :func:`lru_cache`), this function
/external/python/cpython3/Misc/NEWS.d/
D3.6.1rc1.rst172 functools.lru_cache() was susceptible to an obscure reentrancy bug
436 Fixed race condition in C implementation of functools.lru_cache. KeyError
468 functools.lru_cache() now respects PEP 468 and preserves the order of
D3.5.0b4.rst104 lru_cache (C implementation).
D3.5.0b3.rst170 C implementation of functools.lru_cache() now can be used with methods.
D3.6.0b4.rst243 Fix a refleak in functools.lru_cache.
D3.5.1rc1.rst352 The lru_cache() wrapper objects now can be copied and pickled (by returning
501 C implementation of functools.lru_cache() now calculates key's hash only
D3.5.0b1.rst184 Added C implementation of functools.lru_cache(). Based on patches by Matt
D3.7.0a4.rst293 ``functools.lru_cache`` uses less memory (3 words for each cached key) and
D3.5.3rc1.rst64 functools.lru_cache() was susceptible to an obscure reentrancy bug caused by
1672 Fix a refleak in functools.lru_cache.
D3.5.4rc1.rst915 Fixed race condition in C implementation of functools.lru_cache. KeyError
/external/google-fruit/extras/scripts/
Danalyze_template_instantiations_clang_diagnostics.py24 from functools import lru_cache as memoize
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdp_noinline.c181 struct bpf_map_def __attribute__ ((section("maps"), used)) lru_cache = { variable
711 void *lru_map = &lru_cache; in process_packet()
/external/google-fruit/extras/benchmark/
Drun_benchmarks.py36 from functools import lru_cache as memoize

12