Home
last modified time | relevance | path

Searched refs:key_tensor (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/lite/kernels/hashtable/
Dhashtable_import.cc44 const TfLiteTensor* key_tensor; in PrepareHashtableImport() local
46 GetInputSafe(context, node, kKeyTensor, &key_tensor)); in PrepareHashtableImport()
50 TF_LITE_ENSURE(context, (key_tensor->type == kTfLiteInt64 && in PrepareHashtableImport()
52 (key_tensor->type == kTfLiteString && in PrepareHashtableImport()
56 TF_LITE_ENSURE(context, HaveSameShapes(key_tensor, value_tensor)); in PrepareHashtableImport()
66 const TfLiteTensor* key_tensor; in EvalHashtableImport() local
68 GetInputSafe(context, node, kKeyTensor, &key_tensor)); in EvalHashtableImport()
78 lookup->CheckKeyAndValueTypes(context, key_tensor, value_tensor)); in EvalHashtableImport()
81 auto result = lookup->Import(context, key_tensor, value_tensor); in EvalHashtableImport()
Dhashtable_find.cc50 const TfLiteTensor* key_tensor; in PrepareHashtableFind() local
52 GetInputSafe(context, node, kKeyTensor, &key_tensor)); in PrepareHashtableFind()
57 TF_LITE_ENSURE(context, (key_tensor->type == kTfLiteInt64 && in PrepareHashtableFind()
59 (key_tensor->type == kTfLiteString && in PrepareHashtableFind()
62 TfLiteIntArrayCopy(key_tensor->dims)); in PrepareHashtableFind()
71 const TfLiteTensor* key_tensor; in EvalHashtableFind() local
73 GetInputSafe(context, node, kKeyTensor, &key_tensor)); in EvalHashtableFind()
85 lookup->CheckKeyAndValueTypes(context, key_tensor, output_tensor)); in EvalHashtableFind()
87 lookup->Lookup(context, key_tensor, output_tensor, default_value_tensor); in EvalHashtableFind()
Dhashtable_ops_test.cc737 TfLiteTensor key_tensor = CreateTensor<KeyType>(key_type, keys); in InitHashtableResource() local
739 lookup->Import(&context, &key_tensor, &value_tensor); in InitHashtableResource()
740 TfLiteTensorFree(&key_tensor); in InitHashtableResource()
768 auto key_tensor = interpreter_->tensor(keys_); in CreateHashtableResource() local
773 &resources, resource_id, key_tensor->type, value_tensor->type); in CreateHashtableResource()
/external/tensorflow/tensorflow/core/kernels/
Dmap_stage_op.cc523 const Tensor* key_tensor; in Compute() local
527 OP_REQUIRES_OK(ctx, ctx->input("key", &key_tensor)); in Compute()
532 Tensor key(*key_tensor); in Compute()
573 const Tensor* key_tensor; in Compute() local
576 OP_REQUIRES_OK(ctx, ctx->input("key", &key_tensor)); in Compute()
578 OP_REQUIRES_OK(ctx, map->pop(key_tensor, indices_tensor, &tuple)); in Compute()
622 const Tensor* key_tensor; in Compute() local
625 OP_REQUIRES_OK(ctx, ctx->input("key", &key_tensor)); in Compute()
627 OP_REQUIRES_OK(ctx, map->get(key_tensor, indices_tensor, &tuple)); in Compute()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dlmdb_dataset_op.cc92 Tensor& key_tensor = out_tensors->back(); in GetNextInternal() local
93 key_tensor.scalar<tstring>()() = string( in GetNextInternal()
/external/tensorflow/tensorflow/python/ops/
Dlookup_ops.py224 key_tensor = keys
227 key_tensor = keys.values
235 (self.resource_handle, key_tensor, self._default_value)):
237 key_tensor,
240 values.set_shape(key_tensor.get_shape())
/external/tensorflow/tensorflow/compiler/jit/kernels/
Dxla_ops.cc460 Tensor key_tensor = ctx->input(ctx->num_inputs() - 1); in Compute() local
461 const XlaExecutableClosureStore::KeyT& key = key_tensor.flat<tstring>()(0); in Compute()
/external/tensorflow/tensorflow/python/keras/layers/
Dmulti_head_attention_test.py252 key_tensor, argument