Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantize_weights_test.cc142 const auto float_tensor = float_graph->tensors()->Get(i); in TEST_F() local
144 EXPECT_EQ(quant_tensor->buffer(), float_tensor->buffer()); in TEST_F()
145 EXPECT_EQ(quant_tensor->is_variable(), float_tensor->is_variable()); in TEST_F()
147 GetAsVector(float_tensor->shape())); in TEST_F()
148 EXPECT_EQ(quant_tensor->name()->str(), float_tensor->name()->str()); in TEST_F()
149 EXPECT_EQ(quant_tensor->type(), float_tensor->type()); in TEST_F()
180 const auto float_tensor = float_graph->tensors()->Get(i); in TEST_F() local
181 EXPECT_EQ(quant_tensor->buffer(), float_tensor->buffer()); in TEST_F()
182 EXPECT_EQ(quant_tensor->is_variable(), float_tensor->is_variable()); in TEST_F()
184 GetAsVector(float_tensor->shape())); in TEST_F()
[all …]
Dquantize_model_test.cc84 const auto float_tensor = float_graph->tensors()->Get(i); in TEST_F() local
85 EXPECT_EQ(quant_tensor->buffer, float_tensor->buffer()); in TEST_F()
86 EXPECT_EQ(quant_tensor->is_variable, float_tensor->is_variable()); in TEST_F()
87 EXPECT_EQ(quant_tensor->shape, GetAsVector(float_tensor->shape())); in TEST_F()
88 EXPECT_EQ(quant_tensor->name, float_tensor->name()->str()); in TEST_F()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfuse_quantized_convolution.cc180 Tensor float_tensor; in FuseQuantizedConvolutionAndRequantize() local
181 if(!float_tensor.FromProto(float_tensor_proto)) { in FuseQuantizedConvolutionAndRequantize()
185 if (float_tensor.dtype() != DT_FLOAT) { in FuseQuantizedConvolutionAndRequantize()
189 float *p_bias_float = float_tensor.flat<float>().data(); in FuseQuantizedConvolutionAndRequantize()
191 Tensor int32_tensor = Tensor(DT_QINT32, float_tensor.shape()); in FuseQuantizedConvolutionAndRequantize()
197 int64 nelems = float_tensor.NumElements(); in FuseQuantizedConvolutionAndRequantize()
Dquantize_nodes_test.cc129 const Tensor& float_tensor = float_input.second; in TestGraphWithInputRange() local
130 Tensor quantized_tensor(DT_QUINT8, float_tensor.shape()); in TestGraphWithInputRange()
131 FloatTensorToQuantizedInPlace<quint8>(float_tensor, range_min, range_max, in TestGraphWithInputRange()
/external/tensorflow/tensorflow/lite/testing/model_coverage/
Dmodel_coverage_lib.py304 float_tensor["dtype"] == quant_tensors_map[float_tensor["name"]]["dtype"]
305 for float_tensor in float_tensors)
/external/tensorflow/tensorflow/core/kernels/
Dremote_fused_graph_execute_utils.cc226 auto float_tensor = input_tensor.flat<float>(); in DryRunInference() local
227 float_tensor = float_tensor.constant(0.0f); in DryRunInference()
/external/tensorflow/tensorflow/python/feature_column/
Dfeature_column_test.py777 float_tensor = sparse_tensor.SparseTensor(
784 'a_float': float_tensor
Dfeature_column_v2_test.py943 float_tensor = sparse_tensor.SparseTensor(
948 'a_float': float_tensor