Home
last modified time | relevance | path

Searched refs:kUint8 (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dquantization_util.cc28 *out_quantized_data_type = ArrayDataType::kUint8; in InferQuantizedDataTypeFromFakeQuant()
43 case ArrayDataType::kUint8: in GetQuantizedDataTypeNumericalRange()
60 case ArrayDataType::kUint8: in GetQuantizedDataType()
92 case ArrayDataType::kUint8: in ChooseQuantizationParamsForArrayAndQuantizedDataType()
94 ArrayDataType::kUint8>(array, quantization_params); in ChooseQuantizationParamsForArrayAndQuantizedDataType()
196 case ArrayDataType::kUint8: in QuantizeArray()
197 return QuantizeArray<ArrayDataType::kUint8>(transformation, model, name, in QuantizeArray()
Dresolve_multiply_by_zero.cc115 case ArrayDataType::kUint8: { in Run()
117 constant_input_array.GetBuffer<ArrayDataType::kUint8>().data; in Run()
118 if (!AreAllBufferElementsZero<DataType<ArrayDataType::kUint8>>( in Run()
122 FillArrayWithZeros<ArrayDataType::kUint8>(&output_array); in Run()
Dshuffle_fc_weights.cc46 if (input_array.data_type != ArrayDataType::kUint8 || in Run()
47 weights_array.data_type != ArrayDataType::kUint8 || in Run()
118 weights_array.GetMutableBuffer<ArrayDataType::kUint8>().data; in Run()
Densure_uint8_weights_safe_for_fast_int8_kernels.cc160 if (array.data_type != ArrayDataType::kUint8) { in Run()
163 auto& buffer_data = array.GetMutableBuffer<ArrayDataType::kUint8>().data; in Run()
Dresolve_constant_pack.cc95 case ArrayDataType::kUint8: in Run()
96 Pack<ArrayDataType::kUint8>(model, *op); in Run()
Dresolve_constant_reshape.cc74 case ArrayDataType::kUint8: in Run()
75 CopyArrayBuffer<ArrayDataType::kUint8>(input_array, &output_array); in Run()
Dresolve_constant_fill.cc86 case ArrayDataType::kUint8: in Run()
87 if (!ComputeFillArray<ArrayDataType::kUint8>(model, op)) { in Run()
Dresolve_reorder_axes.cc109 } else if (input_array.buffer->type == ArrayDataType::kUint8) { in Run()
113 ReorderAxes<uint8, ArrayDataType::kUint8>(reorder_op->input_axes_order, in Run()
Dresolve_constant_fake_quant.cc41 case ArrayDataType::kUint8: in GetBoundsForQuantizedDataType()
42 return GetBoundsForQuantizedDataType<ArrayDataType::kUint8>(min, max); in GetBoundsForQuantizedDataType()
Dquantize.cc213 case ArrayDataType::kUint8: in GetQuantizationPoints()
214 return GetQuantizationPoints<ArrayDataType::kUint8>(); in GetQuantizationPoints()
298 *quantized_data_type = GetQuantizedDataType(array, ArrayDataType::kUint8); in ChooseQuantizationForOperatorInput()
320 if (data_type == ArrayDataType::kUint8) { in IsExactlyRepresentable()
425 GetQuantizedDataType(input_array, ArrayDataType::kUint8); in ChooseQuantizationForOperatorOutput()
446 *quantized_data_type = GetQuantizedDataType(array, ArrayDataType::kUint8); in ChooseQuantizationForOperatorOutput()
Dresolve_constant_gather.cc126 case ArrayDataType::kUint8: in Run()
127 Gather<ArrayDataType::kUint8>(input_array, coords_array, &output_array); in Run()
Dresolve_constant_strided_slice.cc147 case ArrayDataType::kUint8: in Run()
148 StridedSlice<ArrayDataType::kUint8>(*op, input_array, &output_array); in Run()
Dresolve_constant_slice.cc135 case ArrayDataType::kUint8: in Run()
136 if (!Slice<ArrayDataType::kUint8>(*op, input_array, &output_array)) { in Run()
Dresolve_constant_tile.cc142 case ArrayDataType::kUint8: in Run()
143 Tile<ArrayDataType::kUint8>(input_array, multiples_array, &output_array); in Run()
Dresolve_constant_transpose.cc150 case ArrayDataType::kUint8: in Run()
151 Transpose<ArrayDataType::kUint8>(model, input_array, op->perm, in Run()
Dresolve_constant_concatenation.cc185 case ArrayDataType::kUint8: in Run()
186 ConcatenateTensorBuffers<ArrayDataType::kUint8>( in Run()
Ddequantize.cc88 if (array->data_type == ArrayDataType::kUint8) { in DequantizeArray()
89 DequantizeBuffer<ArrayDataType::kUint8>(array); in DequantizeArray()
Dpropagate_default_min_max.cc78 GetQuantizedDataType(*array, ArrayDataType::kUint8); in SetArrayMinMax()
Didentify_nearest_upsample.cc136 } else if (const_array.data_type == ArrayDataType::kUint8) { in Run()
137 if (!HasSameValues<ArrayDataType::kUint8, uint8_t>(const_array, 255)) in Run()
Dconvert_matrix_diag_v2_or_v3_to_v1.cc63 input_padding_value.GetBuffer<ArrayDataType::kUint8>().data; in Run()
Dresolve_constant_unary.cc225 } else if (input_array.buffer->type == ArrayDataType::kUint8) { in Run()
227 input_array.GetBuffer<ArrayDataType::kUint8>().data[i]); in Run()
/external/tensorflow/tensorflow/lite/toco/tflite/
Dtypes.cc99 case ArrayDataType::kUint8: in Serialize()
129 return ArrayDataType::kUint8; in Deserialize()
156 case ArrayDataType::kUint8: in Serialize()
157 return CopyBuffer<ArrayDataType::kUint8>(array, builder); in Serialize()
186 return CopyBuffer<ArrayDataType::kUint8>(buffer, array); in Deserialize()
Doperator_test.cc192 op.dst_data_type = ArrayDataType::kUint8; in TEST_F()
586 uint8_array.data_type = ArrayDataType::kUint8; in TEST_F()
806 uint8_array.data_type = ArrayDataType::kUint8; in SimpleVersioningTest()
828 uint8_array.data_type = ArrayDataType::kUint8; in SimpleOutputVersioningTest()
872 uint8_array.data_type = ArrayDataType::kUint8; in TEST_F()
913 uint8_array.data_type = ArrayDataType::kUint8; in TEST_F()
932 uint8_array.data_type = ArrayDataType::kUint8; in TEST_F()
964 uint8_array.data_type = ArrayDataType::kUint8; in TEST_F()
1059 SimpleMulVersioningTest(ArrayDataType::kUint8, 0.5f, 1); in TEST_F()
1089 SimpleTwoInputsVersioningTest<SubOperator>(ArrayDataType::kUint8, in TEST_F()
[all …]
Dtypes_test.cc72 {ArrayDataType::kUint8, ::tflite::TensorType_UINT8}, in TEST()
147 Array recovered = ToFlatBufferAndBack<ArrayDataType::kUint8>({127, 244}); in TEST()
148 EXPECT_THAT(recovered.GetBuffer<ArrayDataType::kUint8>().data, in TEST()
/external/libbrillo/brillo/dbus/
Ddata_serialization_fuzzer.cc24 kUint8 = 0, enumerator
119 case kUint8: in LLVMFuzzerTestOneInput()
236 case kUint8: { in LLVMFuzzerTestOneInput()

12