Home
last modified time | relevance | path

Searched refs:t_data (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/lite/tools/benchmark/
Dbenchmark_tflite_model.cc286 InputTensorData t_data; in PrepareInputData() local
288 t_data.bytes = sizeof(float) * num_elements; in PrepareInputData()
289 t_data.data.raw = new char[t_data.bytes]; in PrepareInputData()
290 FillRandomValue<float>(t_data.data.f, num_elements, []() { in PrepareInputData()
296 t_data.bytes = sizeof(int32_t) * num_elements; in PrepareInputData()
297 t_data.data.raw = new char[t_data.bytes]; in PrepareInputData()
298 FillRandomValue<int32_t>(t_data.data.i32, num_elements, []() { in PrepareInputData()
302 t_data.bytes = sizeof(uint8_t) * num_elements; in PrepareInputData()
303 t_data.data.raw = new char[t_data.bytes]; in PrepareInputData()
304 FillRandomValue<uint8_t>(t_data.data.uint8, num_elements, []() { in PrepareInputData()
[all …]
/external/tensorflow/tensorflow/lite/delegates/flex/
Ddelegate.cc107 tensorflow::StringPiece t_data = t.tensor_data(); in CopyFromBufferHandle() local
109 if (output->bytes != t_data.size()) { in CopyFromBufferHandle()
114 t_data.size(), " bytes.") in CopyFromBufferHandle()
119 memcpy(output->data.raw, t_data.data(), t_data.size()); in CopyFromBufferHandle()
/external/tensorflow/tensorflow/core/lib/gtl/
Dedit_distance.h55 const T* t_data = t.data(); in LevenshteinDistance() local
79 const int replacement_cost = cmp(s_data[i - 1], t_data[j - 1]) ? 0 : 1; in LevenshteinDistance()