Home
last modified time | relevance | path

Searched refs:typed_tensor (Results 1 – 25 of 43) sorted by relevance

12

/external/tensorflow/tensorflow/lite/delegates/
Ddelegate_test.cc94 memcpy(interpreter_->typed_tensor<float>(0), input.data(), 3 * sizeof(float)); in TEST_F()
95 memcpy(interpreter_->typed_tensor<float>(1), input.data(), 3 * sizeof(float)); in TEST_F()
117 memcpy(interpreter_->typed_tensor<float>(0), input.data(), 3 * sizeof(float)); in TEST_F()
118 memcpy(interpreter_->typed_tensor<float>(1), input.data(), 3 * sizeof(float)); in TEST_F()
124 memcpy(interpreter_->typed_tensor<float>(0), input.data(), 3 * sizeof(float)); in TEST_F()
125 memcpy(interpreter_->typed_tensor<float>(1), input.data(), 3 * sizeof(float)); in TEST_F()
166 memcpy(interpreter_->typed_tensor<float>(0), input.data(), 3 * sizeof(float)); in TEST_F()
167 memcpy(interpreter_->typed_tensor<float>(1), input.data(), 3 * sizeof(float)); in TEST_F()
194 memcpy(interpreter_->typed_tensor<float>(0), input.data(), 3 * sizeof(float)); in TEST_F()
195 memcpy(interpreter_->typed_tensor<float>(1), input.data(), 3 * sizeof(float)); in TEST_F()
[all …]
Dinterpreter_utils_test.cc51 memcpy(interpreter_->typed_tensor<float>(0), input.data(), 3 * sizeof(float)); in TEST_F()
52 memcpy(interpreter_->typed_tensor<float>(1), input.data(), 3 * sizeof(float)); in TEST_F()
91 memcpy(interpreter_->typed_tensor<float>(0), input.data(), 3 * sizeof(float)); in TEST_F()
92 memcpy(interpreter_->typed_tensor<float>(1), input.data(), 3 * sizeof(float)); in TEST_F()
117 memcpy(interpreter_->typed_tensor<float>(input_tensor_idx), input.data(), in TEST_P()
/external/tensorflow/tensorflow/lite/examples/label_image/
Dbitmap_helpers_impl.h71 auto input = interpreter->typed_tensor<float>(0); in resize()
77 interpreter->typed_tensor<int>(1)[0] = wanted_height; in resize()
78 interpreter->typed_tensor<int>(1)[1] = wanted_width; in resize()
82 auto output = interpreter->typed_tensor<float>(2); in resize()
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dsoftmax_tester.cc75 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
80 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
88 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
90 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dleaky_relu_tester.cc75 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
80 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
88 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
90 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dreshape_tester.cc77 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
82 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
90 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
92 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Ddepth_to_space_tester.cc75 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
82 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
92 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
94 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dunary_elementwise_tester.cc83 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
88 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
96 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
98 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dreduce_tester.cc76 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
81 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
89 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
91 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dresize_bilinear_tester.cc75 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
82 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
92 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
94 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dpad_tester.cc94 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
100 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
108 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
110 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dpool_2d_tester.cc75 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
98 float* xnnpack_input_data = delegate_interpreter->typed_tensor<float>( in Test()
108 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
110 float* xnnpack_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dprelu_tester.cc76 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
82 float* xnnpack_input_data = delegate_interpreter->typed_tensor<float>( in Test()
90 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
92 float* xnnpack_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dbinary_elementwise_tester.cc128 float* default_input1_data = default_interpreter->typed_tensor<float>( in Test()
134 float* xnnpack_input1_data = delegate_interpreter->typed_tensor<float>( in Test()
142 float* default_input2_data = default_interpreter->typed_tensor<float>( in Test()
148 float* xnnpack_input2_data = delegate_interpreter->typed_tensor<float>( in Test()
158 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
160 float* xnnpack_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dfully_connected_tester.cc90 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
95 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
103 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
105 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Dconv_2d_tester.cc74 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
81 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
91 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
93 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
Ddepthwise_conv_2d_tester.cc74 float* default_input_data = default_interpreter->typed_tensor<float>( in Test()
81 float* delegate_input_data = delegate_interpreter->typed_tensor<float>( in Test()
91 float* default_output_data = default_interpreter->typed_tensor<float>( in Test()
93 float* delegate_output_data = delegate_interpreter->typed_tensor<float>( in Test()
/external/tensorflow/tensorflow/lite/testing/
Dparse_testdata.cc164 if (float* data = interpreter->typed_tensor<float>(input_index)) { in FeedExample()
169 interpreter->typed_tensor<int32_t>(input_index)) { in FeedExample()
174 interpreter->typed_tensor<int64_t>(input_index)) { in FeedExample()
197 if (const float* data = interpreter->typed_tensor<float>(output_index)) { in CheckOutputs()
215 interpreter->typed_tensor<int32_t>(output_index)) { in CheckOutputs()
226 interpreter->typed_tensor<int64_t>(output_index)) { in CheckOutputs()
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dparse_testdata.cc167 if (float* data = interpreter->typed_tensor<float>(input_index)) { in FeedExample()
172 interpreter->typed_tensor<int32_t>(input_index)) { in FeedExample()
177 interpreter->typed_tensor<int64_t>(input_index)) { in FeedExample()
200 if (const float* data = interpreter->typed_tensor<float>(output_index)) { in CheckOutputs()
218 interpreter->typed_tensor<int32_t>(output_index)) { in CheckOutputs()
229 interpreter->typed_tensor<int64_t>(output_index)) { in CheckOutputs()
/external/tensorflow/tensorflow/lite/
Dinterpreter_test.cc385 ASSERT_NE(interpreter.typed_tensor<float>(0), nullptr); in TEST()
387 ASSERT_EQ(interpreter.typed_tensor<int>(0), nullptr); in TEST()
389 ASSERT_EQ(interpreter.typed_tensor<float>(0), interpreter.tensor(0)->data.f); in TEST()
1026 interpreter.typed_tensor<int>(1)[0] = 2; in TEST()
1027 interpreter.typed_tensor<int>(1)[1] = 2; in TEST()
1028 interpreter.typed_tensor<int>(1)[2] = 2; in TEST()
1029 interpreter.typed_tensor<int>(1)[3] = 2; in TEST()
1030 interpreter.typed_tensor<int>(1)[4] = 0; in TEST()
1031 interpreter.typed_tensor<int>(1)[5] = 0; in TEST()
1032 interpreter.typed_tensor<int>(1)[6] = 0; in TEST()
[all …]
Dinterpreter.h269 T* typed_tensor(int tensor_index) { in typed_tensor() function
281 const T* typed_tensor(int tensor_index) const { in typed_tensor() function
368 return typed_tensor<T>(inputs()[index]); in typed_input_tensor()
375 return typed_tensor<T>(inputs()[index]); in typed_input_tensor()
392 return typed_tensor<T>(outputs()[index]); in typed_output_tensor()
399 return typed_tensor<T>(outputs()[index]); in typed_output_tensor()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dtest_util.h52 memcpy(interpreter_->typed_tensor<T>(tensor_index), values.data(), in SetTypedValues()
60 const T* tdata = interpreter_->typed_tensor<T>(tensor_index); in GetTypedValues()
/external/XNNPACK/bench/
Delu.cc179 interpreter->typed_tensor<float>(0), in tflite_elu_f32()
180 interpreter->typed_tensor<float>(0) + batch_size * channels, in tflite_elu_f32()
Dbankers-rounding.cc179 interpreter->typed_tensor<float>(0), in tflite_bankers_rounding_f32()
180 interpreter->typed_tensor<float>(0) + batch_size * channels, in tflite_bankers_rounding_f32()
Dfloor.cc179 interpreter->typed_tensor<float>(0), in tflite_floor_f32()
180 interpreter->typed_tensor<float>(0) + batch_size * channels, in tflite_floor_f32()

12