Home
last modified time | relevance | path

Searched refs:integer_bits (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/kernels/xtensa/
Dfixedpoint_utils.h125 inline int CreateQConstantForInt24(int integer_bits, float f) { in CreateQConstantForInt24() argument
129 int fractional_bits = 23 - integer_bits; in CreateQConstantForInt24()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dportable_tensor_utils.h203 void ApplyTanh(int32_t integer_bits, const int16_t* input, int32_t n_batch, in ApplyTanh() argument
205 PortableApplyTanh(integer_bits, input, n_batch, n_input, output); in ApplyTanh()
209 int32_t integer_bits, int16_t* output) { in ApplyTanhFloat() argument
210 PortableApplyTanhFloat(input, n_batch, n_input, integer_bits, output); in ApplyTanhFloat()
Dportable_tensor_utils_impl.h158 void PortableApplyTanh(int32_t integer_bits, const int16_t* input,
162 int32_t n_input, int32_t integer_bits,
Dportable_tensor_utils.cc565 void PortableApplyTanh(int32_t integer_bits, const int16_t* input, in PortableApplyTanh() argument
567 assert(integer_bits <= 6); in PortableApplyTanh()
572 switch (integer_bits) { in PortableApplyTanh()
587 int32_t n_input, int32_t integer_bits, in PortableApplyTanhFloat() argument
596 input[index] * std::pow(two, static_cast<double>(integer_bits)); in PortableApplyTanhFloat()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dneon_tensor_utils.h171 void ApplyTanh(int32_t integer_bits, const int16_t* input, int32_t n_batch, in ApplyTanh() argument
173 NEON_OR_PORTABLE(ApplyTanh, integer_bits, input, n_batch, n_input, output); in ApplyTanh()
177 int32_t integer_bits, int16_t* output) { in ApplyTanhFloat() argument
178 PortableApplyTanhFloat(input, n_batch, n_input, integer_bits, output); in ApplyTanhFloat()
Dsse_tensor_utils.h185 int32_t integer_bits, int16_t* output) { in ApplyTanhFloat() argument
186 PortableApplyTanhFloat(input, n_batch, n_input, integer_bits, output); in ApplyTanhFloat()
Dneon_tensor_utils_impl.h70 void NeonApplyTanh(int32_t integer_bits, const int16_t* input, int32_t n_batch,
Dneon_tensor_utils.cc1700 void NeonApplyTanh(int32_t integer_bits, const int16_t* input, int32_t n_batch, in NeonApplyTanh() argument
1702 assert(integer_bits <= 6); in NeonApplyTanh()
1707 switch (integer_bits) { in NeonApplyTanh()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dtensor_utils_common.h238 void ApplyTanh(int32_t integer_bits, const int16_t* input, int32_t n_batch,
245 int32_t integer_bits, int16_t* output);
Dquantization_util_test.cc492 auto quantize = [](double beta, double scale, int integer_bits) { in TEST() argument
495 PreprocessSoftmaxScaling(beta, scale, integer_bits, &q, &s); in TEST()
/external/tensorflow/tensorflow/lite/micro/kernels/
Dquantization_util_test.cc380 auto quantize = [](double beta, double scale, int integer_bits) { in TF_LITE_MICRO_TEST() argument
383 tflite::PreprocessSoftmaxScaling(beta, scale, integer_bits, &q, &s); in TF_LITE_MICRO_TEST()