Home
last modified time | relevance | path

Searched refs:RequiredBufferSizeForShape (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dfuse_binary_into_following_affine.cc52 CHECK_EQ(RequiredBufferSizeForShape(operand.shape()), 1); in FuseAddOrSubParamsIntoFollowingAffine()
82 const int weights_size = RequiredBufferSizeForShape(weights_shape); in FuseAddOrSubParamsIntoFollowingAffine()
97 const int weights_size = RequiredBufferSizeForShape(weights_shape); in FuseAddOrSubParamsIntoFollowingAffine()
132 CHECK_EQ(RequiredBufferSizeForShape(operand.shape()), 1); in FuseMulOrDivParamsIntoFollowingAffine()
139 const int weights_size = RequiredBufferSizeForShape(weights.shape()); in FuseMulOrDivParamsIntoFollowingAffine()
Dresolve_constant_range.cc84 CHECK_EQ(RequiredBufferSizeForShape(start_array.shape()), 1) in Run()
86 CHECK_EQ(RequiredBufferSizeForShape(limit_array.shape()), 1) in Run()
88 CHECK_EQ(RequiredBufferSizeForShape(delta_array.shape()), 1) in Run()
Dresolve_fake_quant_args_from_vars.cc56 CHECK_EQ(RequiredBufferSizeForShape(min_array.shape()), 1); in Run()
57 CHECK_EQ(RequiredBufferSizeForShape(max_array.shape()), 1); in Run()
Dresolve_constant_pack.cc34 output_data.resize(RequiredBufferSizeForShape(output_array.shape())); in Pack()
42 int input_size = RequiredBufferSizeForShape(input_array.shape()); in Pack()
Dresolve_constant_fill.cc35 data.resize(RequiredBufferSizeForShape(output_array.shape())); in ComputeFillArray()
78 CHECK_EQ(RequiredBufferSizeForShape(val_array.shape()), 1); in Run()
Dresolve_strided_slice_attributes.cc31 buffer->data.resize(RequiredBufferSizeForShape(strided_slice_shape)); in PadAttributeArray()
64 if (toco::RequiredBufferSizeForShape(start_array.shape()) > 4) { in Run()
Dresolve_batch_normalization.cc100 data.resize(RequiredBufferSizeForShape(mean_shape), data[0]); in Run()
105 const int buffer_size = RequiredBufferSizeForShape(param_shape); in Run()
Dconvert_expanddims_to_reshape.cc52 CHECK_EQ(RequiredBufferSizeForShape(axis_array.shape()), 1); in Run()
Dpropagate_fixed_sizes.cc360 CHECK_LE(RequiredBufferSizeForShape(dims_array.shape()), 4) in ProcessOpWithShapeInput()
387 const int input_overall_size = RequiredBufferSizeForShape(input_shape); in ProcessFullyConnectedOperator()
443 const int input_flat_size = RequiredBufferSizeForShape(input_shape); in ProcessTensorFlowReshapeOperator()
459 CHECK_EQ(input_flat_size, RequiredBufferSizeForShape(output_shape)) in ProcessTensorFlowReshapeOperator()
728 CHECK_EQ(RequiredBufferSizeForShape(start_array.shape()), 1) in ProcessRangeOperator()
730 CHECK_EQ(RequiredBufferSizeForShape(limit_array.shape()), 1) in ProcessRangeOperator()
732 CHECK_EQ(RequiredBufferSizeForShape(delta_array.shape()), 1) in ProcessRangeOperator()
769 CHECK_EQ(RequiredBufferSizeForShape(axis_array.shape()), 1) in ProcessTensorFlowSplitOperator()
839 CHECK_EQ(RequiredBufferSizeForShape(axis_array.shape()), 1) in ProcessTensorFlowSplitVOperator()
1826 CHECK_EQ(RequiredBufferSizeForShape(axis_array.shape()), 1) in ProcessArgMinMaxOperator()
[all …]
Dresolve_constant_random_uniform.cc39 data.resize(RequiredBufferSizeForShape(output_array.shape())); in ComputeRandomUniformArray()
Dresolve_constant_unary.cc211 const int output_buffer_size = RequiredBufferSizeForShape(output_shape); in Run()
217 const int input_buffer_size = RequiredBufferSizeForShape(input_shape); in Run()
Dlstm_utils.cc50 buffer->data.resize(RequiredBufferSizeForShape(shape)); in CreateFloatArrayBuffer()
Dresolve_reorder_axes.cc63 output_data.resize(RequiredBufferSizeForShape(output_array->shape())); in ReorderAxes()
Didentify_relu1.cc43 RequiredBufferSizeForShape(op_array.shape()) != 1) { in CheckArrayIsScalarFloat()
Didentify_l2_normalization.cc93 if (RequiredBufferSizeForShape(input_array.shape()) != 1) { in Run()
Dresolve_multiply_by_zero.cc43 data.resize(RequiredBufferSizeForShape(array->shape())); in FillArrayWithZeros()
Dresolve_constant_strided_slice.cc48 output_data.resize(RequiredBufferSizeForShape(output_array->shape())); in StridedSlice()
Dresolve_constant_gather.cc40 output_data.resize(RequiredBufferSizeForShape(output_shape)); in Gather()
Dresolve_constant_tile.cc76 output_data.resize(RequiredBufferSizeForShape(output_array->shape())); in Tile()
Dresolve_constant_slice.cc38 output_data.resize(RequiredBufferSizeForShape(output_array->shape())); in Slice()
Dresolve_constant_transpose.cc38 output_data.resize(RequiredBufferSizeForShape(output_shape)); in Transpose()
Dunpartition_embedding_lookup.cc206 perm_data.resize(RequiredBufferSizeForShape(perm_array.shape())); in Run()
/external/tensorflow/tensorflow/lite/toco/
Dtooling_util.h150 int RequiredBufferSizeForShape(const Shape& shape);
182 int source_buffer_size = RequiredBufferSizeForShape(source_array.shape());
183 int target_buffer_size = RequiredBufferSizeForShape(target_array->shape());
236 DCHECK_LT(index, RequiredBufferSizeForShape(shape));
Dtooling_util.cc727 int RequiredBufferSizeForShape(const Shape& shape) { in RequiredBufferSizeForShape() function
1040 RequiredBufferSizeForShape(array->shape())); in CheckEachArray()
1866 param_array_data.resize(RequiredBufferSizeForShape(param_array.shape())); in CreateInt32Array()
1889 2 * RequiredBufferSizeForShape(weights_array.shape()); in EstimateArithmeticOpsCount()
1893 *result += RequiredBufferSizeForShape(output_array.shape()); in EstimateArithmeticOpsCount()
1904 *result = RequiredBufferSizeForShape(output_array.shape()); in EstimateArithmeticOpsCount()
1914 *result = num_adds * RequiredBufferSizeForShape(output_array.shape()); in EstimateArithmeticOpsCount()
1929 *result = 64 * RequiredBufferSizeForShape(output_array.shape()); in EstimateArithmeticOpsCount()
1938 *result = RequiredBufferSizeForShape(output_array.shape()) * in EstimateArithmeticOpsCount()
1948 *result = RequiredBufferSizeForShape(output_array.shape()) * in EstimateArithmeticOpsCount()
[all …]
Ddump_graphviz.cc293 buffer_size = RequiredBufferSizeForShape(array.shape()); in GetArrayLabel()
506 buffer_size = RequiredBufferSizeForShape(array.shape()); in GetLog2BufferSize()

12