Home
last modified time | relevance | path

Searched refs:key_shape (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dstateless_random_ops_v2.h25 TensorShape const& key_shape, in CheckKeyCounterShape() argument
27 if (!(key_shape.dims() == 1 && key_shape.dim_size(0) == RNG_KEY_SIZE)) { in CheckKeyCounterShape()
30 key_shape.DebugString(), in CheckKeyCounterShape()
Dinitializable_lookup_table.h71 TensorShape key_shape() const final { return TensorShape(); } in key_shape() function
179 TensorShape key_shape = keys_->shape(); in KeyValueTensorIterator() local
180 if (!key_shape.IsSameSize(values_->shape())) { in KeyValueTensorIterator()
184 key_shape.DebugString(), " vs ", values_->shape().DebugString()); in KeyValueTensorIterator()
186 if (key_shape.num_elements() == 0) { in KeyValueTensorIterator()
Dmap_kernels.h205 TensorShape key_shape = it->first.shape(); in Compute() local
211 ctx, it->first.shape() == key_shape, in Compute()
Dlookup_table_op.cc143 TensorShape key_shape() const final { return TensorShape(); } in key_shape() function in tensorflow::lookup::MutableHashTableOfScalars
292 TensorShape key_shape() const final { return TensorShape(); } in key_shape() function in tensorflow::lookup::MutableHashTableOfTensors
557 TensorShape key_shape = MaybeVectorizeShape(key_shape_); in CheckKeyAndValueTensorsForImport() local
564 expected_value_shape.RemoveLastDims(key_shape.dims()); in CheckKeyAndValueTensorsForImport()
578 TensorShape key_shape() const override { return key_shape_; } in key_shape() function in tensorflow::lookup::MutableDenseHashTable
844 output_shape.RemoveLastDims(table->key_shape().dims()); in Compute()
/external/tensorflow/tensorflow/core/framework/
Dlookup_interface.cc25 if (!TensorShapeUtils::EndsWith(shape, key_shape())) { in CheckKeyShape()
28 key_shape().DebugString()); in CheckKeyShape()
52 for (int i = 0; i < key_shape().dims(); ++i) { in CheckKeyAndValueTensorsHelper()
87 for (int i = 0; i < key_shape().dims(); ++i) { in CheckFindArguments()
Dlookup_interface.h101 virtual TensorShape key_shape() const = 0;
/external/tensorflow/tensorflow/lite/kernels/
Dhashtable_lookup_test.cc42 std::initializer_list<int> key_shape, in HashtableLookupOpModel() argument
51 BuildInterpreter({lookup_shape, key_shape, value_shape}); in HashtableLookupOpModel()
/external/tensorflow/tensorflow/python/keras/layers/
Dmulti_head_attention.py296 key_shape = config.pop("key_shape")
299 if None in [query_shape, key_shape, value_shape]:
306 …layer._build_from_signature(query_shape, value_shape, key_shape) # pylint: disable=protected-acce…
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Drandom_ops.cc132 const xla::Shape key_shape = in Compile() local
143 xla::XlaOp keys = xla::RngUniform(zero, max_value, key_shape); in Compile()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator.cc2171 Shape key_shape = sort->operand(0)->shape(); in HandleSort() local
2172 auto rank = key_shape.rank(); in HandleSort()
2181 int64 sort_dim_elements = key_shape.dimensions(sort_dim); in HandleSort()
2186 key_shape, zero_base, AsInt64Slice(key_shape.dimensions()), increment, in HandleSort()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_test.cc4812 std::initializer_list<int> key_shape, in HashtableLookupOpModel() argument
4821 BuildInterpreterWithNNAPI({lookup_shape, key_shape, value_shape}); in HashtableLookupOpModel()