Home
last modified time | relevance | path

Searched refs:DimensionsProduct (Results 1 – 24 of 24) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dconvert.cc45 if (in.size() != shape.DimensionsProduct()) { in ConvertToPHWO4I4()
48 in.size(), " != ", shape.DimensionsProduct())); in ConvertToPHWO4I4()
124 if (in.size() != shape.DimensionsProduct()) { in ConvertToPHWO4I4()
127 in.size(), " != ", shape.DimensionsProduct())); in ConvertToPHWO4I4()
178 if (in.size() != shape.DimensionsProduct()) { in ConvertToPIOHW4()
181 in.size(), " != ", shape.DimensionsProduct())); in ConvertToPIOHW4()
220 if (in.size() != shape.DimensionsProduct()) { in ValidateConvertToPHWC4()
223 in.size(), " != ", shape.DimensionsProduct())); in ValidateConvertToPHWC4()
239 shape.DimensionsProduct() * sizeof(float)); in ConvertToPHWC4()
401 if (out.size() != shape.DimensionsProduct()) { in ValidateConvertFromPHWC4()
[all …]
Dtensor.h89 shape.DimensionsProduct(), 0);
Dshape.h128 int64_t DimensionsProduct() const { in DimensionsProduct() function
473 bool empty() const { return DimensionsProduct() == 0; }
485 int64_t DimensionsProduct() const {
Dwinograd_util.cc120 dst_weights->data.resize(dst_shape.DimensionsProduct()); in RearrangeWeightsToWinograd4x4To6x6Weights()
Dmodel_builder.cc522 weights.data.resize(weights.shape.DimensionsProduct()); in TransposeWeights()
821 if (input->tensor.shape.DimensionsProduct() / batch_size != weights_width) { in Parse()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/
Dconv_weights_converter_test_util.cc38 src_tensor.data.resize(src_shape.DimensionsProduct(), 2.0); in ConvolutionWeightsConverterTest()
116 weights.data.resize(weights_shape.DimensionsProduct()); in ConverterToConvWeights1x1OutX4Test()
150 weights.data.resize(weights_shape.DimensionsProduct()); in ConverterToConvWeights1x1OutX4UnalignedTest()
183 weights.data.resize(weights_shape.DimensionsProduct()); in ConverterToConvWeights1x1OutX2Test()
216 weights.data.resize(weights_shape.DimensionsProduct()); in ConverterToConvWeightsOutX2Test()
251 weights.data.resize(weights_shape.DimensionsProduct()); in ConverterToConvTransposedWeights4x4Test()
285 weights.data.resize(weights_shape.DimensionsProduct()); in ConverterToConvWeights4xTexturesTest()
Dwinograd_test_util.cc105 biases.data.resize(biases.shape.DimensionsProduct()); in Winograd36To4x4Tile4x1Test()
239 biases.data.resize(biases.shape.DimensionsProduct()); in Winograd36To4x4Test()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/converters/
Dphwc4_to_bhwc_test.cc48 std::vector<float> output(shape.DimensionsProduct(), 0); in RunTest()
63 shape.DimensionsProduct(), &output_buffer)); in RunTest()
Dutil.h42 return shape.DimensionsProduct() * sizeof(float); in BytesForBHWC()
Dbhwc_to_phwc4_test.cc46 std::vector<float> input = GenerateFloats(0.01, shape.DimensionsProduct()); in RunTest()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dconverter_test.cc52 std::vector<float> output(shape.DimensionsProduct(), 0); in RunFromTensorTest()
67 shape.DimensionsProduct(), &output_buffer)); in RunFromTensorTest()
108 std::vector<float> input = GenerateFloats(0.01, shape.DimensionsProduct()); in RunToTensorTest()
Dtest_util.cc64 inputs_[index].shape.DimensionsProduct() != data.size()) { in PopulateTensor()
123 tensor.data.reserve(output->tensor.shape.DimensionsProduct()); in Invoke()
Dconverter.cc86 return shape.DimensionsProduct() * sizeof(float); in SizeInBytesBHWC()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dtensor_test.cc37 tensor_cpu.data.resize(shape.DimensionsProduct()); in TensorGenericTest()
43 tensor_gpu.data.resize(shape.DimensionsProduct()); in TensorGenericTest()
66 tensor_cpu.data.resize(shape.DimensionsProduct()); in Tensor5DGenericTest()
72 tensor_gpu.data.resize(shape.DimensionsProduct()); in Tensor5DGenericTest()
Dinference_context.cc727 result->data.resize(dst_shape.DimensionsProduct()); in GetOutputTensor()
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/
Dmetal_spatial_tensor_test.mm45 tensor_cpu.data.resize(shape.DimensionsProduct());
51 tensor_gpu.data.resize(shape.DimensionsProduct());
76 tensor_cpu.data.resize(shape.DimensionsProduct());
82 tensor_gpu.data.resize(shape.DimensionsProduct());
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/
Dcl_test.cc94 dst_cpu[i]->data = std::vector<float>(dst_sizes[i].DimensionsProduct(), 0); in ExecuteGPUOperation()
142 dst_cpu[i]->data = std::vector<float>(dst_sizes[i].DimensionsProduct(), 0); in ExecuteGPUOperation()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/
Dmake_padding_test.cc56 std::vector<float>(const_attr.tensor.shape.DimensionsProduct(), 0); in TEST()
Dfuse_mul_to_conv_test.cc51 conv_attr.weights.data.resize(conv_attr.weights.shape.DimensionsProduct()); in TEST()
108 conv_attr.weights.data.resize(conv_attr.weights.shape.DimensionsProduct()); in TEST()
Dfuse_add_to_conv_test.cc51 conv_attr.weights.data.resize(conv_attr.weights.shape.DimensionsProduct()); in TEST()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dobject_manager.cc44 tensor->data.resize(tensor->shape.DimensionsProduct()); in CopyFromPHWC4Buffer()
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/kernels/
Dtest_util.cc113 dst_cpu[i]->data = std::vector<float>(dst_sizes[i].DimensionsProduct(), 0); in ExecuteGPUOperation()
Dconv_test.mm232 attr.weights.data.resize(attr.weights.shape.DimensionsProduct());
237 attr.bias.data.resize(attr.bias.shape.DimensionsProduct());
254 src_tensor.data.resize(src_tensor.shape.DimensionsProduct());
/external/tensorflow/tensorflow/lite/delegates/gpu/
Dmetal_delegate.mm379 int bhwc_length = static_cast<int>(sizeof(float) * input_tensor.shape.DimensionsProduct());
416 int bhwc_length = static_cast<int>(sizeof(float) * output_tensor.shape.DimensionsProduct());
475 std::memcpy(gpu_ptr, tensor->data.f, input.shape.DimensionsProduct() * sizeof(float));
565 std::memcpy(tensor->data.f, gpu_ptr, output.shape.DimensionsProduct() * sizeof(float));