Home
last modified time | relevance | path

Searched refs:compute_func (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/platform/cloud/
Dexpiring_lru_cache_test.cc94 ExpiringLRUCache<int>::ComputeFunc compute_func = in TEST() local
103 TF_EXPECT_OK(cache1.LookupOrCompute("a", &value, compute_func)); in TEST()
107 TF_EXPECT_OK(cache1.LookupOrCompute("a", &value, compute_func)); in TEST()
117 TF_EXPECT_OK(cache2.LookupOrCompute("a", &value, compute_func)); in TEST()
121 TF_EXPECT_OK(cache2.LookupOrCompute("a", &value, compute_func)); in TEST()
126 TF_EXPECT_OK(cache2.LookupOrCompute("b", &value, compute_func)); in TEST()
129 TF_EXPECT_OK(cache2.LookupOrCompute("c", &value, compute_func)); in TEST()
132 TF_EXPECT_OK(cache2.LookupOrCompute("d", &value, compute_func)); in TEST()
135 TF_EXPECT_OK(cache2.LookupOrCompute("e", &value, compute_func)); in TEST()
139 TF_EXPECT_OK(cache2.LookupOrCompute("b", &value, compute_func)); in TEST()
[all …]
Dexpiring_lru_cache.h79 const ComputeFunc& compute_func) { in LookupOrCompute() argument
81 return compute_func(key, value); in LookupOrCompute()
92 Status s = compute_func(key, value); in LookupOrCompute()
Dgcs_file_system.cc1174 auto compute_func = [this](const string& bucket, string* location) { in GetBucketLocation() local
1188 bucket_location_cache_->LookupOrCompute(bucket, location, compute_func)); in GetBucketLocation()
1208 StatCache::ComputeFunc compute_func = [this](const string& dirname, in FolderExists() local
1223 compute_func); in FolderExists()
1244 MatchingPathsCache::ComputeFunc compute_func = in GetMatchingPaths() local
1272 matching_paths_cache_->LookupOrCompute(pattern, results, compute_func)); in GetMatchingPaths()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dhalf_test.cc43 std::function<half(half)> compute_func; member
58 std::function<half(half)> compute_func = GetParam().compute_func; in XLA_TEST_P() local
61 expected.push_back(compute_func(x[i])); in XLA_TEST_P()
97 std::function<bool(half)> compute_func; member
112 std::function<bool(half)> compute_func = GetParam().compute_func; in XLA_TEST_P() local
116 expected[i] = compute_func(x[i]); in XLA_TEST_P()
133 std::function<half(half, half)> compute_func; member
152 std::function<half(half, half)> compute_func = GetParam().compute_func; in XLA_TEST_P() local
155 expected.push_back(compute_func(x[i], y[i])); in XLA_TEST_P()
186 std::function<bool(half, half)> compute_func; member
[all …]
/external/tensorflow/tensorflow/c/
Dkernels.cc39 void (*compute_func)(void*, TF_OpKernelContext*), in TF_NewKernelBuilder()
45 result->compute_function = compute_func; in TF_NewKernelBuilder()
65 void (*compute_func)(void*, TF_OpKernelContext*), in COpKernel()
67 : OpKernel(ctx), compute_func_(compute_func), delete_func_(delete_func) { in COpKernel()
Dkernels.h73 void (*compute_func)(void*, TF_OpKernelContext*),
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_response_cache.cc70 ComputeFunc compute_func, in LookupOrCompute() argument
110 compute_func([this, key, req, response](Status status) { in LookupOrCompute()
Dgrpc_response_cache.h74 ComputeFunc compute_func, StatusCallback done_cb);
/external/speex/libspeexdsp/
Dresample.c242 static double compute_func(float x, const struct FuncDef *func) in compute_func() function
269 printf ("%f\n", compute_func(i/256., KAISER12));
286 return WORD2INT(32768.*cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x/N), window_func)); in sinc()
299 return cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x/N), window_func); in sinc()