Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/delegates/gpu/gl/converters/
Dbhwc_to_phwc4_test.cc47 std::vector<float> output(GetElementsSizeForPHWC4(shape), 0); in RunTest()
62 GetElementsSizeForPHWC4(shape), &output_buffer)); in RunTest()
Dphwc4_to_bhwc_test.cc47 GenerateFloats(0.01, GetElementsSizeForPHWC4(shape)); in RunTest()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dconverter_test.cc51 GenerateFloats(0.01, GetElementsSizeForPHWC4(shape)); in RunFromTensorTest()
109 std::vector<float> output(GetElementsSizeForPHWC4(shape), 0); in RunToTensorTest()
124 GetElementsSizeForPHWC4(shape), &output_buffer)); in RunToTensorTest()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dconvert.cc225 if (out.size() != GetElementsSizeForPHWC4(shape)) { in ValidateConvertToPHWC4()
228 out.size(), " != ", GetElementsSizeForPHWC4(shape))); in ValidateConvertToPHWC4()
369 std::vector<float> transposed(GetElementsSizeForPHWC4(tensor.shape)); in ConvertToPHWC4()
381 std::vector<float> transposed(GetElementsSizeForPHWC4(batched_shape)); in ConvertToPHWC4()
389 uint32_t GetElementsSizeForPHWC4(const BHWC& shape) { in GetElementsSizeForPHWC4() function
396 if (in.size() != GetElementsSizeForPHWC4(shape)) { in ValidateConvertFromPHWC4()
399 in.size(), " != ", GetElementsSizeForPHWC4(shape))); in ValidateConvertFromPHWC4()
Dconvert.h41 uint32_t GetElementsSizeForPHWC4(const BHWC& shape);
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dobject_manager.cc29 std::vector<float> transposed(GetElementsSizeForPHWC4(tensor.shape)); in CreatePHWC4BufferFromTensor()
38 GetElementsSizeForPHWC4(tensor_ref.shape), gl_buffer); in CreatePHWC4BufferFromTensorRef()
/external/tensorflow/tensorflow/lite/delegates/gpu/
Dgl_delegate.cc200 GetElementsSizeForPHWC4(input->tensor.shape), &buffer)); in Prepare()
238 GetElementsSizeForPHWC4(output->tensor.shape), &buffer)); in Prepare()
Dmetal_delegate.mm381 static_cast<int>(storage_type_size * GetElementsSizeForPHWC4(input_tensor.shape));
418 static_cast<int>(storage_type_size * GetElementsSizeForPHWC4(output_tensor.shape));