Home
last modified time | relevance | path

Searched refs:shape_signature (Results 1 – 25 of 31) sorted by relevance

12

/external/armnn/src/armnnTfLiteParser/test/
DReshapeDynamic.cpp46 "shape_signature": [ in ReshapeDynamicFixture1()
77 "shape_signature": [ in ReshapeDynamicFixture1()
211 "shape_signature": [ in ReshapeDynamicFixture2()
241 "shape_signature": [ in ReshapeDynamicFixture2()
374 "shape_signature": [ in ReshapeDynamicFixture3()
405 "shape_signature": [ in ReshapeDynamicFixture3()
DFloorDiv.cpp44 "shape_signature": )" + inputShapeSignature1 + R"(, in FloorDivFixture()
56 "shape_signature": )" + inputShapeSignature2 + R"(, in FloorDivFixture()
68 "shape_signature": )" + outputShapeSignature + R"(, in FloorDivFixture()
DGatherNd.cpp40 "shape_signature": )" + paramsShape + R"( in GatherNdFixture()
67 "shape_signature": )" + outputShape + R"( in GatherNdFixture()
DParserFlatbuffersFixture.hpp104 if (tensor->shape_signature.size() != 0) in MakeModelDynamic()
111 tensor->shape_signature.push_back(-1); in MakeModelDynamic()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dmodel_utils.cc86 const std::vector<int32_t>& shape_signature, in MakeTensor() argument
91 if (!shape_signature.empty()) { in MakeTensor()
92 tensor_raw->shape_signature = shape_signature; in MakeTensor()
102 const std::vector<int32_t>& shape_signature, in MakeTensorWithQuantParam() argument
106 MakeTensor(name, shape, shape_signature, type, tensor); in MakeTensorWithQuantParam()
Dmodel_utils.h39 const std::vector<int32_t>& shape_signature,
45 const std::vector<int32_t>& shape_signature,
Dquantize_model.cc428 utils::MakeTensor(leading_op_name, tensor->shape, tensor->shape_signature, in SetInputType()
444 leading_op_name, tensor->shape, tensor->shape_signature, input_type, in SetInputType()
490 utils::MakeTensor(tailing_op_name, tensor->shape, tensor->shape_signature, in SetOutputType()
506 tailing_op_name, tensor->shape, tensor->shape_signature, output_type, in SetOutputType()
767 input_tensor->shape_signature, activations_type, output_scale, in ApplyConstraints()
1019 tensor->shape_signature, activations_type, in QuantizeOpInput()
1049 tensor->shape_signature, TensorType_FLOAT32, &op_output); in QuantizeOpInput()
Dmodify_model_interface.cc417 added_tensor_name, tensor->shape, tensor->shape_signature, in AddUint8Dequant()
457 added_tensor_name, tensor->shape, tensor->shape_signature, in AddUint8Quant()
Dquantize_weights_portable.cc469 utils::MakeTensor(dequant_name, tensor->shape, tensor->shape_signature,
553 utils::MakeTensor(dequant_name, tensor->shape, tensor->shape_signature, in QuantizeWeightsFloat16()
Dquantize_weights.cc483 utils::MakeTensor(dequant_name, tensor->shape, tensor->shape_signature,
567 utils::MakeTensor(dequant_name, tensor->shape, tensor->shape_signature, in QuantizeWeightsFloat16()
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/
Dsignature_def_with_multiple_entry_points.mlir20 // CHECK-NEXT: shape_signature: [ -1 ],
29 // CHECK-NEXT: shape_signature: [ -1 ],
38 // CHECK-NEXT: shape_signature: [ -1 ],
47 // CHECK-NEXT: shape_signature: [ -1 ],
76 // CHECK-NEXT: shape_signature: [ -1 ],
85 // CHECK-NEXT: shape_signature: [ -1 ],
94 // CHECK-NEXT: shape_signature: [ -1 ],
Dsignature_def.mlir18 // CHECK-NEXT: shape_signature: [ -1, 384 ],
27 // CHECK-NEXT: shape_signature: [ -1, 384 ],
60 // CHECK-NEXT: shape_signature: [ -1, 5 ],
69 // CHECK-NEXT: shape_signature: [ -1, 5 ],
Dsignature_def_output_override.mlir18 // CHECK-NEXT: shape_signature: [ -1, 3 ],
27 // CHECK-NEXT: shape_signature: [ -1, 3 ],
52 // CHECK-NEXT: shape_signature: [ -1, 5 ],
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/model_modifier/
Dgrafter.cc226 std::vector<int32_t> shape_signature; in AdjustTensors() local
227 if (i->shape_signature()) { in AdjustTensors()
228 shape_signature.assign(i->shape_signature()->cbegin(), in AdjustTensors()
229 i->shape_signature()->cend()); in AdjustTensors()
244 shape_signature.empty() ? 0 : fbb_->CreateVector(shape_signature))); in AdjustTensors()
Dvalidation_graph_builder.cc157 std::vector<int32_t> shape_signature; in Tensors() local
158 if (tensor->shape_signature()) { in Tensors()
159 shape_signature.assign(tensor->shape_signature()->cbegin(), in Tensors()
160 tensor->shape_signature()->cend()); in Tensors()
161 if (shape_signature.size() >= 2 && shape_signature[0] == 1 && in Tensors()
163 shape_signature[0] = batch_size; in Tensors()
185 shape_signature.empty() ? 0 : fbb_.CreateVector(shape_signature))); in Tensors()
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/
Dgrafter.cc227 std::vector<int32_t> shape_signature; in AdjustTensors() local
228 if (i->shape_signature()) { in AdjustTensors()
229 shape_signature.assign(i->shape_signature()->cbegin(), in AdjustTensors()
230 i->shape_signature()->cend()); in AdjustTensors()
245 shape_signature.empty() ? 0 : fbb_->CreateVector(shape_signature))); in AdjustTensors()
Dembedder.cc244 std::vector<int32_t> shape_signature; in Tensors() local
245 if (tensor->shape_signature()) { in Tensors()
246 shape_signature.assign(tensor->shape_signature()->cbegin(), in Tensors()
247 tensor->shape_signature()->cend()); in Tensors()
248 if (shape_signature.size() >= 2 && shape_signature[0] == 1 && in Tensors()
250 shape_signature[0] = batch_size; in Tensors()
272 shape_signature.empty() ? 0 : fbb_.CreateVector(shape_signature))); in Tensors()
/external/tensorflow/tensorflow/lite/python/analyzer_wrapper/
Dmodel_analyzer.cc109 if (tensor->shape_signature()) { in dump_tensor_detail()
111 for (int i = 0; i < tensor->shape_signature()->Length(); ++i) { in dump_tensor_detail()
112 const int j = tensor->shape_signature()->Get(i); in dump_tensor_detail()
114 if (i != tensor->shape_signature()->Length() - 1) { in dump_tensor_detail()
/external/tensorflow/tensorflow/lite/python/
Dlite_v2_test_util.py54 for idx, (shape_signature, final_shape) in enumerate(input_shapes):
56 (input_details[idx]['shape_signature'] == shape_signature).all())
/external/tensorflow/tensorflow/lite/kernels/
Dtest_util.h117 std::vector<int> shape_signature = {})
134 shape_signature(shape_signature) {} in type()
149 std::vector<int> shape_signature; member
744 /*sparsity=*/0, builder_.CreateVector<int>(t.shape_signature)));
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib.cc257 std::vector<int32_t> shape_signature(shape_signature_view.begin(), in ExportTensors() local
259 shape_signature_offset = ExportVector<int32_t>(fbb, shape_signature); in ExportTensors()
/external/tensorflow/tensorflow/lite/
Dinterpreter_builder.cc626 if (tensor->shape_signature()) { in ParseTensors()
627 dims_signature = FlatBufferIntArrayToVector(tensor->shape_signature()); in ParseTensors()
/external/tensorflow/tensorflow/lite/tools/versioning/
Dop_signature.cc73 subgraph->tensors()->Get(tensor_no)->shape_signature(); in GetOpSignatureTensorSpecs()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_import.cc251 if (!tensor.shape_signature.empty()) { in GetTensorType()
252 llvm::SmallVector<int64_t, 4> shape(tensor.shape_signature.begin(), in GetTensorType()
253 tensor.shape_signature.end()); in GetTensorType()
Dflatbuffer_export.cc894 std::vector<int32_t> shape_signature; in BuildTensor() local
919 shape_signature = std::vector<int32_t>(shape_ref.begin(), shape_ref.end()); in BuildTensor()
980 if (shape_signature.empty()) { in BuildTensor()
992 /*shape_signature=*/builder_.CreateVector(shape_signature), in BuildTensor()

12