Home
last modified time | relevance | path

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

/external/mesa3d/src/util/
Ddisk_cache.h44 typedef uint8_t cache_key[CACHE_KEY_SIZE]; typedef
62 cache_key *keys; /* sha1 list of shaders that make up the cache item */
146 disk_cache_remove(struct disk_cache *cache, const cache_key key);
158 disk_cache_put(struct disk_cache *cache, const cache_key key,
176 disk_cache_get(struct disk_cache *cache, const cache_key key, size_t *size);
188 disk_cache_put_key(struct disk_cache *cache, const cache_key key);
201 disk_cache_has_key(struct disk_cache *cache, const cache_key key);
208 cache_key key);
225 disk_cache_put(struct disk_cache *cache, const cache_key key, in disk_cache_put()
233 disk_cache_remove(struct disk_cache *cache, const cache_key key) in disk_cache_remove()
[all …]
Ddisk_cache.c110 cache_key key;
439 get_cache_file(struct disk_cache *cache, const cache_key key) in get_cache_file()
458 make_cache_file_directory(struct disk_cache *cache, const cache_key key) in make_cache_file_directory()
655 disk_cache_remove(struct disk_cache *cache, const cache_key key) in disk_cache_remove()
776 create_put_job(struct disk_cache *cache, const cache_key key, in create_put_job()
785 memcpy(dc_job->key, key, sizeof(cache_key)); in create_put_job()
796 dc_job->cache_item_metadata.keys = (cache_key *) in create_put_job()
797 malloc(cache_item_metadata->num_keys * sizeof(cache_key)); in create_put_job()
804 sizeof(cache_key) * cache_item_metadata->num_keys); in create_put_job()
936 sizeof(cache_key)); in cache_put()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dattr_builder_test.cc76 tensorflow::Fprint128 cache_key = a.CacheKey("cpu:0"); in TEST() local
78 ASSERT_FALSE(cache_key == a.CacheKey("cpu:1")); in TEST()
79 ASSERT_TRUE(cache_key == a.CacheKey("cpu:0")); in TEST()
82 ASSERT_FALSE(cache_key == a.CacheKey("cpu:0")); in TEST()
Dcontext.cc350 KernelAndDevice* EagerContext::GetCachedKernel(Fprint128 cache_key) { in GetCachedKernel() argument
352 return gtl::FindPtrOrNull(kernel_cache_, cache_key); in GetCachedKernel()
355 void EagerContext::AddKernelToCache(Fprint128 cache_key, in AddKernelToCache() argument
358 gtl::InsertOrUpdate(&kernel_cache_, cache_key, kernel); in AddKernelToCache()
Dexecute.cc323 Fprint128* cache_key) { in AddInputDevicesToCacheKey() argument
347 *cache_key = FingerprintCat128(*cache_key, Fingerprint128(device_name)); in AddInputDevicesToCacheKey()
377 Fprint128 cache_key = in EagerLocalExecute() local
386 AddInputDevicesToCacheKey(ctx, op, &input_dev_ptrs, &cache_key)); in EagerLocalExecute()
389 KernelAndDevice* kernel = ctx->GetCachedKernel(cache_key); in EagerLocalExecute()
462 ctx->AddKernelToCache(cache_key, kernel); in EagerLocalExecute()
Dcontext.h153 KernelAndDevice* GetCachedKernel(Fprint128 cache_key);
155 void AddKernelToCache(Fprint128 cache_key, KernelAndDevice* kernel);
/external/autotest/scheduler/
Drdb_cache_manager.py114 cache_key = self.cache.get_key(request.deps, request.acls)
116 kwargs[MEMOIZE_KEY] = self.cache.get_line(cache_key)
120 self.cache.set_line(cache_key, hosts)
/external/mesa3d/src/compiler/glsl/
Dshader_cache.cpp110 (cache_key *) malloc(prog->NumShaders * sizeof(cache_key)); in shader_cache_write_program_metadata()
120 sizeof(cache_key)); in shader_cache_write_program_metadata()
/external/python/cpython3/Lib/xml/etree/
DElementPath.py267 cache_key = (path, None if namespaces is None
272 selector = _cache[cache_key]
295 _cache[cache_key] = selector
/external/tensorflow/tensorflow/python/framework/
Dconstant_op.py104 cache_key = device, value, dtype, type(value)
106 tensor = scalar_cache.get(cache_key, None)
111 scalar_cache[cache_key] = t
Dops.py6319 cache_key = self._name, self._old_name, self._default_name
6320 if cache_key in name_scope_cache:
6321 self._ctx.scope_name = name_scope_cache[cache_key]
6332 name_scope_cache[cache_key] = scope_name
/external/mesa3d/src/compiler/glsl/tests/
Dcache_test.c213 does_cache_contain(struct disk_cache *cache, const cache_key key) in does_cache_contain()
228 wait_until_file_written(struct disk_cache *cache, const cache_key key) in wait_until_file_written()
/external/tensorflow/tensorflow/python/keras/engine/
Dnetwork.py883 cache_key = generic_utils.object_list_uid(input_shape)
884 if cache_key in self._output_shape_cache:
886 return self._output_shape_cache[cache_key]
938 self._output_shape_cache[cache_key] = output_shapes
1027 cache_key = generic_utils.object_list_uid(input_shapes)
1028 self._output_shape_cache[cache_key] = nest.pack_sequence_as(
/external/tensorflow/tensorflow/python/eager/
Dfunction.py1528 cache_key = self._cache_key(args, kwargs)
1531 hash(cache_key)
1538 graph_function = self._function_cache.primary.get(cache_key, None)
1544 self._python_function, cache_key)
1550 call_context_key = cache_key.replace(input_signature=None)
1559 self._function_cache.primary[cache_key] = graph_function
Dbackprop.py614 cache_key = shape, dtype, device
615 cached = ctx.zeros_cache().get(cache_key)
622 ctx.zeros_cache().put(cache_key, cached)
Dcontext.py566 cache_key = (old_device_name, name)
568 new_device_name, new_device_spec = _device_parsing_cache[cache_key]
590 _device_parsing_cache[cache_key] = (new_device_name, new_device_spec)
/external/libchrome/third_party/jinja2/
Denvironment.py798 cache_key = (weakref.ref(self.loader), name)
800 template = self.cache.get(cache_key)
806 self.cache[cache_key] = template
/external/toolchain-utils/crosperf/
Dresults_cache.py649 cache_key = ' '.join(list_of_strings)
650 cache_dir = misc.GetFilenameFromString(cache_key)
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dpfor.py1456 cache_key = (graph, x, data_format)
1457 if cache_key not in _channel_flatten_input_cache:
1473 _channel_flatten_input_cache[cache_key] = outputs
1475 outputs = _channel_flatten_input_cache[cache_key]