Home
last modified time | relevance | path

Searched refs:flat_size (Results 1 – 25 of 46) sorted by relevance

12

/external/tensorflow/tensorflow/lite/micro/kernels/ceva/
Dceva_tflm_lib.h40 int flat_size);
42 int flat_size);
44 int flat_size);
46 int flat_size);
49 int flat_size);
51 int flat_size);
53 int flat_size);
56 int flat_size);
58 int flat_size);
61 int flat_size);
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dlogistic.h35 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Logistic() local
45 for (int i = 0; i < flat_size; i++) { in Logistic()
71 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Logistic() local
73 for (int i = 0; i < flat_size; i++) { in Logistic()
100 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Logistic() local
110 for (int i = 0; i < flat_size; i++) { in Logistic()
Dtanh.h31 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Tanh() local
33 for (int i = 0; i < flat_size; i++) { in Tanh()
58 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Tanh() local
68 for (int i = 0; i < flat_size; i++) { in Tanh()
74 for (int i = 0; i < flat_size; i++) { in Tanh()
91 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Tanh() local
93 for (int i = 0; i < flat_size; i++) { in Tanh()
Dleaky_relu.h29 const int flat_size = MatchingFlatSize(input_shape, output_shape); in LeakyRelu() local
30 for (int i = 0; i < flat_size; ++i) { in LeakyRelu()
43 const int flat_size = MatchingFlatSize(input_shape, output_shape); in QuantizeLeakyRelu() local
46 for (int i = 0; i < flat_size; ++i) { in QuantizeLeakyRelu()
Dadd.h30 const int flat_size = in Add() local
32 for (int i = 0; i < flat_size; ++i) { in Add()
43 const int flat_size = in Add() local
45 for (int i = 0; i < flat_size; i++) { in Add()
130 const int flat_size = in Add() local
137 AddElementwise(flat_size, params, input1_data, input2_data, output_data); in Add()
149 const int flat_size = in AddGeneralParamScale() local
158 AddElementwise(flat_size, params, input1_data, input2_data, output_data); in AddGeneralParamScale()
176 const int flat_size = variable
190 for (int i = 0; i < flat_size; i++) {
Dceil.h28 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Ceil() local
30 for (int i = 0; i < flat_size; ++i) { in Ceil()
Dfloor.h28 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Floor() local
30 for (int i = 0; i < flat_size; i++) { in Floor()
Dneg.h27 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Negate() local
29 for (int i = 0; i < flat_size; ++i) { in Negate()
Dfill.h29 const int flat_size = output_shape.FlatSize(); in Fill() local
30 for (int i = 0; i < flat_size; ++i) { in Fill()
Delu.h28 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Elu() local
29 for (int i = 0; i < flat_size; ++i) { in Elu()
Dcast.h28 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Cast() local
30 for (int i = 0; i < flat_size; i++) { in Cast()
Dmul.h53 const int flat_size = in Mul() local
55 for (int i = 0; i < flat_size; ++i) { in Mul()
68 const int flat_size = in Mul() local
71 MulElementwise(flat_size, params, input1_data, input2_data, output_data); in Mul()
Dround.h39 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Round() local
40 for (int i = 0; i < flat_size; ++i) { in Round()
Dsub.h39 const int flat_size = in SubNonBroadcast() local
41 for (int i = 0; i < flat_size; ++i) { in SubNonBroadcast()
55 const int flat_size = in SubNonBroadcast() local
57 for (int i = 0; i < flat_size; ++i) { in SubNonBroadcast()
452 const int flat_size = in Sub() local
459 SubElementwise(flat_size, params, input1_data, input2_data, output_data); in Sub()
469 const int flat_size = in Sub() local
477 SubElementwise(flat_size, params, input1_data, input2_data, output_data); in Sub()
542 const int flat_size = in SubWithActivation() local
547 for (int i = 0; i < flat_size; ++i) { in SubWithActivation()
Ddiv.h67 const int flat_size = in Div() local
70 DivElementwise(flat_size, params, input1_data, input2_data, output_data); in Div()
182 const int flat_size = in Div() local
184 for (int i = 0; i < flat_size; ++i) { in Div()
Dquantize.h38 const int flat_size = MatchingFlatSize(input_shape, output_shape); in AffineQuantize() local
42 for (int i = 0; i < flat_size; i++) { in AffineQuantize()
Dreference_ops.h93 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Relu() local
94 for (int i = 0; i < flat_size; ++i) { in Relu()
106 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Relu1() local
107 for (int i = 0; i < flat_size; ++i) { in Relu1()
119 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Relu6() local
120 for (int i = 0; i < flat_size; ++i) { in Relu6()
134 const int flat_size = MatchingFlatSize(input_shape, output_shape); in ReluX() local
135 for (int i = 0; i < flat_size; ++i) { in ReluX()
152 const int flat_size = MatchingFlatSize(input_shape, output_shape); in ReluX() local
155 for (int i = 0; i < flat_size; ++i) { in ReluX()
[all …]
Dmaximum_minimum.h33 const int flat_size = in MaximumMinimumBroadcastSlow() local
36 for (int i = 0; i < flat_size; ++i) { in MaximumMinimumBroadcastSlow()
/external/tensorflow/tensorflow/lite/micro/kernels/
Dzeros_like.cc52 int flat_size = MatchingFlatSize(tflite::micro::GetTensorShape(input), in Eval() local
56 resetZeros(tflite::micro::GetTensorData<int64_t>(output), flat_size); in Eval()
59 resetZeros(tflite::micro::GetTensorData<int32_t>(output), flat_size); in Eval()
62 resetZeros(tflite::micro::GetTensorData<float>(output), flat_size); in Eval()
Dactivations.cc54 const int flat_size = MatchingFlatSize(input_shape, output_shape); in ReluQuantized() local
55 for (int i = 0; i < flat_size; ++i) { in ReluQuantized()
99 const int flat_size = MatchingFlatSize(input_shape, output_shape); in ReluFloat() local
100 for (int i = 0; i < flat_size; ++i) { in ReluFloat()
110 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Relu6Float() local
111 for (int i = 0; i < flat_size; ++i) { in Relu6Float()
124 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Relu6Quantized() local
125 for (int i = 0; i < flat_size; ++i) { in Relu6Quantized()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/
Dtanh.h37 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Tanh() local
39 for (int i = 0; i < flat_size; ++i) { in Tanh()
80 int flat_size = MatchingFlatSize(input_shape, output_shape); in Tanh() local
82 for (int i = 0; i < flat_size; ++i, ptr_input_data++, ptr_output_data++) { in Tanh()
Dmul.h52 const int flat_size = in Mul() local
55 MulElementwise(flat_size, params, input1_data, input2_data, output_data); in Mul()
69 const int flat_size = in Mul() local
72 for (int i = 0; i < flat_size; i++) { in Mul()
Ddequantize.h31 const int flat_size = MatchingFlatSize(input_shape, output_shape); in Dequantize() local
33 for (int i = 0; i < flat_size; i++) { in Dequantize()
/external/tensorflow/tensorflow/lite/kernels/internal/
Ddepthwiseconv_per_channel_quantized_test.cc144 void CompareRoundingResults(int flat_size, const int depth_multiplier, in CompareRoundingResults() argument
147 std::vector<int> diff(flat_size); in CompareRoundingResults()
150 for (int i = 0; i < flat_size; i++) { in CompareRoundingResults()
161 const float mean_diff = static_cast<float>(sum_diff) / flat_size; in CompareRoundingResults()
162 const float mean_abs_diff = static_cast<float>(sum_abs_diff) / flat_size; in CompareRoundingResults()
167 std::max(1e-2f, 1.01f / flat_size * std::sqrt(1.f * depth_multiplier)); in CompareRoundingResults()
Dtranspose_utils.cc127 size_t flat_size = input_shape.FlatSize(); in Flatten() local
130 flat_size /= input_shape.Dims(i); in Flatten()
160 return flat_size; in Flatten()

12