Home
last modified time | relevance | path

Searched refs:CacheKey (Results 1 – 25 of 48) sorted by relevance

12

/external/perfetto/ui/src/components/tracks/
Dtimeline_cache.ts56 export class CacheKey { class
62 static create(startNs: time, endNs: time, windowSizePx: number): CacheKey {
65 return new CacheKey(
85 static zero(): CacheKey {
86 return new CacheKey(Time.ZERO, Time.ZERO, 0n, 100);
98 normalize(): CacheKey {
104 return new CacheKey(startNs, endNs, bucketNs, windowSizePx);
111 isCoveredBy(other: CacheKey): boolean {
Dtimeline_cache_unittest.ts16 import {CacheKey} from './timeline_cache';
19 const k = CacheKey.create(Time.fromRaw(201n), Time.fromRaw(302n), 123);
Dbase_counter_track.ts22 import {CacheKey} from './timeline_cache';
190 private countersKey: CacheKey = CacheKey.zero();
406 this.countersKey = CacheKey.zero();
445 const rawCountersKey = CacheKey.create(
806 private async maybeRequestData(rawCountersKey: CacheKey) {
/external/tensorflow/tensorflow/core/tfrt/eager/
Dop_cache.h70 const CacheKey& cache_key{op_name, op_handler, in Contains()
78 class CacheKey {
80 CacheKey(string_view op_name, OpHandler* op_handler, in CacheKey() function
87 CacheKey(const CacheKey& other) in CacheKey() function
120 bool operator==(const CacheKey& other) const {
126 CacheKey lhs{*this};
127 CacheKey rhs{other};
167 size_t operator()(const CacheKey& input_key) const { in operator()
168 CacheKey key{input_key}; in operator()
182 std::unordered_map<CacheKey, CoreRuntimeOp, CacheKeyHash> cache_
Dfunction_cache.h123 const CacheKey& cache_key{op_name.str(), device_name.str()}; in Contains()
131 struct CacheKey { struct
134 bool operator==(const CacheKey& other) const { argument
141 size_t operator()(const CacheKey& pair) const { in operator()
148 std::unordered_map<CacheKey, RCReference<FunctionState>, CacheKeyHash> cache_
Dop_cache.cc29 CacheKey cache_key{op_name, op_handler, in GetOrAddOp()
62 CacheKey cache_key{op_name, nullptr, "", {}}; in GetOrAddXlaOp()
/external/skia/src/gpu/ganesh/
DGrDDLContext.cpp77 typedef const GrProgramDesc CacheKey; typedef in GrDDLContext::ProgramInfoMap
88 void add(CacheKey& desc, const GrProgramInfo* programInfo) { in add()
100 fMap.foreach([dst](CacheKey* programDesc, CacheValue* programInfo) { in toArray()
110 uint32_t operator()(CacheKey& desc) const { in operator ()()
115 SkLRUCache<CacheKey, CacheValue, DescHash> fMap;
/external/icu/icu4c/source/common/
Dunifiedcache.h104 class CacheKey : public CacheKeyBase {
106 virtual ~CacheKey() { } in ~CacheKey()
139 class LocaleCacheKey : public CacheKey<T> {
143 if (!CacheKey<T>::equals(other)) { in equals()
153 : CacheKey<T>(other), fLoc(other.fLoc) { } in LocaleCacheKey()
156 return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode()); in hashCode()
203 const CacheKey<T>& key, in get()
225 const CacheKey<T>& key, in get()
/external/cronet/tot/third_party/icu/source/common/
Dunifiedcache.h104 class CacheKey : public CacheKeyBase {
106 virtual ~CacheKey() { } in ~CacheKey()
139 class LocaleCacheKey : public CacheKey<T> {
143 if (!CacheKey<T>::equals(other)) { in equals()
153 : CacheKey<T>(other), fLoc(other.fLoc) { } in LocaleCacheKey()
156 return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode()); in hashCode()
203 const CacheKey<T>& key, in get()
225 const CacheKey<T>& key, in get()
/external/icu/libicu/cts_headers/
Dunifiedcache.h104 class CacheKey : public CacheKeyBase {
106 virtual ~CacheKey() { } in ~CacheKey()
139 class LocaleCacheKey : public CacheKey<T> {
143 if (!CacheKey<T>::equals(other)) { in equals()
153 : CacheKey<T>(other), fLoc(other.fLoc) { } in LocaleCacheKey()
156 return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode()); in hashCode()
203 const CacheKey<T>& key, in get()
225 const CacheKey<T>& key, in get()
/external/cronet/stable/third_party/icu/source/common/
Dunifiedcache.h104 class CacheKey : public CacheKeyBase {
106 virtual ~CacheKey() { } in ~CacheKey()
139 class LocaleCacheKey : public CacheKey<T> {
143 if (!CacheKey<T>::equals(other)) { in equals()
153 : CacheKey<T>(other), fLoc(other.fLoc) { } in LocaleCacheKey()
156 return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode()); in hashCode()
203 const CacheKey<T>& key, in get()
225 const CacheKey<T>& key, in get()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dattr_builder_test.cc75 TEST(AttrTypeMap, CacheKey) { in TEST() argument
79 tensorflow::Fprint128 cache_key = a.CacheKey("cpu:0"); in TEST()
81 ASSERT_FALSE(cache_key == a.CacheKey("cpu:1")); in TEST()
82 ASSERT_TRUE(cache_key == a.CacheKey("cpu:0")); in TEST()
85 ASSERT_FALSE(cache_key == a.CacheKey("cpu:0")); in TEST()
/external/tensorflow/tensorflow/compiler/xla/service/
Dcompilation_cache.h48 using CacheKey = int64_t; variable
50 absl::flat_hash_map<CacheKey, std::shared_ptr<Executable>> cache_
Dcompilation_cache.cc44 CacheKey key = GetUniqueId(); in Insert()
58 CacheKey key = handle.handle(); in LookUp()
/external/angle/src/libANGLE/renderer/vulkan/
DBufferVk.h72 struct CacheKey final
81 VertexConversionBuffer(vk::Renderer *renderer, const CacheKey &cacheKey);
86 bool match(const CacheKey &cacheKey) in match()
121 const CacheKey &getCacheKey() const { return mCacheKey; } in getCacheKey()
125 CacheKey mCacheKey;
230 const VertexConversionBuffer::CacheKey &cacheKey);
/external/boringssl/src/crypto/spake2plus/
Dspake2plus_test.cc58 CacheKey key{names.first, names.second, pw}; in Get()
80 struct CacheKey { struct in __anon0d28bc860111::RegistrationCache
83 bool operator==(const CacheKey &other) const { in operator ==() argument
90 std::size_t operator()(const CacheKey &k) const { in operator ()()
97 std::unordered_map<CacheKey, Result, KeyHash> cache;
/external/jazzer-api/src/main/java/com/code_intelligence/jazzer/mutation/mutator/proto/
DBuilderMutatorFactory.java299 private final HashMap<CacheKey, SerializingMutator<? extends Builder>> internedMutators =
310 -> internedMutators.put(new CacheKey(Any.getDescriptor(), anySource), mutator),
385 CacheKey cacheKey = new CacheKey(descriptor, anySource);
425 private static final class CacheKey {
429 private CacheKey(Descriptor descriptor, AnySource anySource) {
442 CacheKey cacheKey = (CacheKey) o;
/external/pytorch/aten/src/ATen/native/quantized/cudnn/
DBinaryOps.cpp41 struct CacheKey { struct
65 …td::unordered_map<CacheKey, cudnn_frontend::ManagedOpaqueDescriptor, at::native::ParamsHash<CacheK…
123 CacheKey key{}; in add()
DLinear.cpp50 struct CacheKey { struct
78 std::unordered_map<CacheKey, cudnn_frontend::ExecutionPlan, at::native::ParamsHash<CacheKey>, at::n…
117 CacheKey key{}; in apply_impl_helper()
DConv.cpp48 struct CacheKey { struct
57 std::unordered_map<CacheKey, cudnn_frontend::ExecutionPlan, at::native::ParamsHash<CacheKey>, at::n…
91 CacheKey key{}; in apply_impl_helper()
/external/pytorch/torch/csrc/dynamo/
Dpython_compiled_autograd.cpp106 std::unordered_set<CacheKey> cached_keys, in log_node_check()
107 const CacheKey& key, in log_node_check()
122 std::unordered_set<CacheKey> cached_keys, in _log_node_miss()
123 const CacheKey& key, in _log_node_miss()
172 CacheNode* lookup(const CacheKey& key, bool create = true) { in lookup()
179 CacheKey key_with_storage(key.node_type, buffer.get(), key.key_size); in lookup()
302 std::unordered_map<CacheKey, std::unique_ptr<CacheNode>> next;
507 CacheKey key = node_args.key(); in _compiled_autograd_impl()
509 std::unordered_set<CacheKey> cached_keys; in _compiled_autograd_impl()
Dcompiled_autograd.h41 struct CacheKey { struct
44 CacheKey(const std::type_index& ntype, const uint8_t* key, uint16_t len) in CacheKey() argument
47 bool operator<(const CacheKey& other) const {
57 bool operator==(const CacheKey& other) const {
459 CacheKey key() const { in key()
461 return CacheKey( in key()
847 struct std::hash<torch::dynamo::autograd::CacheKey> {
848 size_t operator()(const torch::dynamo::autograd::CacheKey& k) const {
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp963 ValueIsLoadPair CacheKey(Loc.Ptr, isLoad); in GetNonLocalInfoForBlock() local
964 RemoveFromReverseMap(ReverseNonLocalPtrDeps, &*ScanPos, CacheKey); in GetNonLocalInfoForBlock()
990 ValueIsLoadPair CacheKey(Loc.Ptr, isLoad); in GetNonLocalInfoForBlock() local
991 ReverseNonLocalPtrDeps[Inst].insert(CacheKey); in GetNonLocalInfoForBlock()
1051 ValueIsLoadPair CacheKey(Pointer.getAddr(), isLoad); in getNonLocalPointerDepFromBB() local
1064 NonLocalPointerDeps.insert(std::make_pair(CacheKey, InitialNLPI)); in getNonLocalPointerDepFromBB()
1077 RemoveFromReverseMap(ReverseNonLocalPtrDeps, Inst, CacheKey); in getNonLocalPointerDepFromBB()
1096 RemoveFromReverseMap(ReverseNonLocalPtrDeps, Inst, CacheKey); in getNonLocalPointerDepFromBB()
1349 NonLocalPointerInfo &NLPI = NonLocalPointerDeps[CacheKey]; in getNonLocalPointerDepFromBB()
1356 CacheInfo = &NonLocalPointerDeps[CacheKey]; in getNonLocalPointerDepFromBB()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp1011 ValueIsLoadPair CacheKey(Loc.Ptr, isLoad); in GetNonLocalInfoForBlock() local
1012 RemoveFromReverseMap(ReverseNonLocalPtrDeps, &*ScanPos, CacheKey); in GetNonLocalInfoForBlock()
1038 ValueIsLoadPair CacheKey(Loc.Ptr, isLoad); in GetNonLocalInfoForBlock() local
1039 ReverseNonLocalPtrDeps[Inst].insert(CacheKey); in GetNonLocalInfoForBlock()
1099 ValueIsLoadPair CacheKey(Pointer.getAddr(), isLoad); in getNonLocalPointerDepFromBB() local
1112 NonLocalPointerDeps.insert(std::make_pair(CacheKey, InitialNLPI)); in getNonLocalPointerDepFromBB()
1139 RemoveFromReverseMap(ReverseNonLocalPtrDeps, Inst, CacheKey); in getNonLocalPointerDepFromBB()
1159 RemoveFromReverseMap(ReverseNonLocalPtrDeps, Inst, CacheKey); in getNonLocalPointerDepFromBB()
1412 NonLocalPointerInfo &NLPI = NonLocalPointerDeps[CacheKey]; in getNonLocalPointerDepFromBB()
1419 CacheInfo = &NonLocalPointerDeps[CacheKey]; in getNonLocalPointerDepFromBB()
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp946 ValueIsLoadPair CacheKey(Loc.Ptr, isLoad); in getNonLocalInfoForBlock() local
947 RemoveFromReverseMap(ReverseNonLocalPtrDeps, &*ScanPos, CacheKey); in getNonLocalInfoForBlock()
977 ValueIsLoadPair CacheKey(Loc.Ptr, isLoad); in getNonLocalInfoForBlock() local
978 ReverseNonLocalPtrDeps[Inst].insert(CacheKey); in getNonLocalInfoForBlock()
1039 ValueIsLoadPair CacheKey(Pointer.getAddr(), isLoad); in getNonLocalPointerDepFromBB() local
1056 NonLocalPointerDeps.insert(std::make_pair(CacheKey, InitialNLPI)); in getNonLocalPointerDepFromBB()
1084 RemoveFromReverseMap(ReverseNonLocalPtrDeps, Inst, CacheKey); in getNonLocalPointerDepFromBB()
1108 RemoveFromReverseMap(ReverseNonLocalPtrDeps, Inst, CacheKey); in getNonLocalPointerDepFromBB()
1373 NonLocalPointerInfo &NLPI = NonLocalPointerDeps[CacheKey]; in getNonLocalPointerDepFromBB()
1380 CacheInfo = &NonLocalPointerDeps[CacheKey]; in getNonLocalPointerDepFromBB()
[all …]

12