Home
last modified time | relevance | path

Searched refs:quantized_values (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dportable_tensor_utils.h38 int8_t* quantized_values, float* min, float* max, in SymmetricQuantizeFloats() argument
40 PortableSymmetricQuantizeFloats(values, size, quantized_values, min, max, in SymmetricQuantizeFloats()
45 int8_t* quantized_values, float min_value, in SymmetricQuantizeFloats() argument
47 PortableSymmetricQuantizeFloats(values, size, quantized_values, min_value, in SymmetricQuantizeFloats()
52 int8_t* quantized_values, float* scaling_factor, in AsymmetricQuantizeFloats() argument
54 PortableAsymmetricQuantizeFloats(values, size, quantized_values, in AsymmetricQuantizeFloats()
Dportable_tensor_utils_impl.h44 int8_t* quantized_values, float* min_value,
48 int8_t* quantized_values, float min_value,
52 int8_t* quantized_values,
Dportable_tensor_utils.cc41 int8_t* quantized_values, float* min_value, in PortableSymmetricQuantizeFloats() argument
47 PortableSymmetricQuantizeFloats(values, size, quantized_values, *min_value, in PortableSymmetricQuantizeFloats()
52 int8_t* quantized_values, float min_value, in PortableSymmetricQuantizeFloats() argument
57 memset(quantized_values, 0, size * sizeof(int8_t)); in PortableSymmetricQuantizeFloats()
67 quantized_values[i] = static_cast<int8_t>( in PortableSymmetricQuantizeFloats()
73 int8_t* quantized_values, in PortableAsymmetricQuantizeFloats() argument
83 memset(quantized_values, 0, size * sizeof(int8_t)); in PortableAsymmetricQuantizeFloats()
114 quantized_values[i] = in PortableAsymmetricQuantizeFloats()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dsse_tensor_utils.h265 int8_t* quantized_values, float* min_value, in SymmetricQuantizeFloats() argument
267 NEON_OR_PORTABLE(SymmetricQuantizeFloats, values, size, quantized_values, in SymmetricQuantizeFloats()
272 int8_t* quantized_values, float min_value, in SymmetricQuantizeFloats() argument
274 NEON_OR_PORTABLE(SymmetricQuantizeFloats, values, size, quantized_values, in SymmetricQuantizeFloats()
279 int8_t* quantized_values, float* scaling_factor, in AsymmetricQuantizeFloats() argument
281 NEON_OR_PORTABLE(AsymmetricQuantizeFloats, values, size, quantized_values, in AsymmetricQuantizeFloats()
Dneon_tensor_utils.h255 int8_t* quantized_values, float* min_value, in SymmetricQuantizeFloats() argument
257 NEON_OR_PORTABLE(SymmetricQuantizeFloats, values, size, quantized_values, in SymmetricQuantizeFloats()
262 int8_t* quantized_values, float min_value, in SymmetricQuantizeFloats() argument
264 NEON_OR_PORTABLE(SymmetricQuantizeFloats, values, size, quantized_values, in SymmetricQuantizeFloats()
269 int8_t* quantized_values, float* scaling_factor, in AsymmetricQuantizeFloats() argument
271 NEON_OR_PORTABLE(AsymmetricQuantizeFloats, values, size, quantized_values, in AsymmetricQuantizeFloats()
Dneon_tensor_utils_impl.h146 int8_t* quantized_values, float* min,
151 int8_t* quantized_values, float min, float max,
156 int8_t* quantized_values,
Dneon_tensor_utils.cc2290 int8_t* quantized_values, float* min, in NeonSymmetricQuantizeFloats() argument
2296 NeonSymmetricQuantizeFloats(values, size, quantized_values, *min, *max, in NeonSymmetricQuantizeFloats()
2301 int8_t* quantized_values, float min, float max, in NeonSymmetricQuantizeFloats() argument
2306 memset(quantized_values, 0, size * sizeof(int8_t)); in NeonSymmetricQuantizeFloats()
2348 vst1_s8(&quantized_values[i], min_s8x8); in NeonSymmetricQuantizeFloats()
2354 quantized_values[i] = std::min(kScale, std::max(-kScale, quantized_value)); in NeonSymmetricQuantizeFloats()
2359 int8_t* quantized_values, in NeonAsymmetricQuantizeFloats() argument
2369 memset(quantized_values, 0, size * sizeof(int8_t)); in NeonAsymmetricQuantizeFloats()
2431 vst1_s8(&quantized_values[i], min_s8x8); in NeonAsymmetricQuantizeFloats()
2437 quantized_values[i] = in NeonAsymmetricQuantizeFloats()
/external/tensorflow/tensorflow/lite/micro/
Dmicro_utils.cc38 int8_t* quantized_values, in SignedSymmetricPerChannelQuantize() argument
73 quantized_values[idx] = in SignedSymmetricPerChannelQuantize()
Dmicro_utils.h97 int8_t* quantized_values,
/external/libtextclassifier/native/lang_id/common/flatbuffers/
Dembedding-network-params-from-flatbuffer.cc372 const flatbuffers::Vector<uint8_t> *quantized_values = in SafeGetQuantizedValues() local
373 matrix->quantized_values(); in SafeGetQuantizedValues()
374 if (quantized_values == nullptr) { in SafeGetQuantizedValues()
377 return quantized_values->data(); in SafeGetQuantizedValues()
Dembedding-network.fbs46 // should be stored in |quantized_values| and the float16 quantization scales
56 quantized_values:[ubyte];
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dquantization_utils.cc473 std::vector<int8_t> quantized_values(real_values_attr.getNumElements()); in QuantizeLegacy() local
477 real_values.data(), real_values.size(), quantized_values.data(), &min, in QuantizeLegacy()
492 uniform_type.getQuantizedDimension(), &quantized_values); in QuantizeLegacy()
496 std::transform(quantized_values.begin(), quantized_values.end(), in QuantizeLegacy()
504 auto quantized_values = in QuantizeLegacy() local
507 std::transform(quantized_values.begin(), quantized_values.end(), in QuantizeLegacy()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dtensor_utils_common.h40 int8_t* quantized_values, float* min_value,
48 int8_t* quantized_values, float min_value,
52 int8_t* quantized_values, float* scaling_factor,