Searched refs:bias_max (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/ |
D | conv_2d_helpers.cc | 86 TfLiteContext* context, float* bias_min, float* bias_max, in ProcessPerChannelQuantizedBias() argument 111 if (abs_dequantized_value > *bias_max) { in ProcessPerChannelQuantizedBias() 112 *bias_max = abs_dequantized_value; in ProcessPerChannelQuantizedBias() 116 *bias_max = *bias_max * 8; in ProcessPerChannelQuantizedBias() 117 *bias_min = -1 * *bias_max; in ProcessPerChannelQuantizedBias() 123 std::round(std::pow(2, 31) * (dequantized_bias[i] / *bias_max)))); in ProcessPerChannelQuantizedBias() 258 float bias_max = 0; in InitializeBiasNodes() local 261 &bias_max, graph_builder_, in InitializeBiasNodes() 269 ComputeMinAndMaxQuantValues(bias_tensor, &bias_min, &bias_max)); in InitializeBiasNodes() 276 quant_bound_shape.data(), reinterpret_cast<char*>(&bias_max), in InitializeBiasNodes() [all …]
|
D | transpose_conv_2d_builder.cc | 149 float bias_max = 0; in PopulateSubGraph() local 152 &bias_max, graph_builder_, in PopulateSubGraph() 158 ComputeMinAndMaxQuantValues(bias_tensor, &bias_min, &bias_max)); in PopulateSubGraph() 164 kScalarShape, reinterpret_cast<char*>(&bias_max), sizeof(bias_max)); in PopulateSubGraph()
|
D | matmul_builder.cc | 94 float bias_min, bias_max; in AddFullyConnectedHelper() local 95 OpBuilder::ComputeMinAndMaxQuantValues(bias_tensor, &bias_min, &bias_max); in AddFullyConnectedHelper() 99 scalar_shape, reinterpret_cast<char*>(&bias_max), sizeof(bias_max)); in AddFullyConnectedHelper()
|
D | conv_2d_builder.h | 93 TfLiteContext* context, float* bias_min, float* bias_max,
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_bias_add_op_test.cc | 62 const float bias_max = 3.0f; in TEST_F() local 67 FloatTensorToQuantized<quint8>(bias_float, bias_min, bias_max); in TEST_F() 80 AddInputFromArray<float>(TensorShape({1}), {bias_max}); in TEST_F() 122 const float bias_max = 0.641057f; in TEST_F() local 139 FloatTensorToQuantized<quint8>(bias_float, bias_min, bias_max); in TEST_F() 162 AddInputFromArray<float>(TensorShape({1}), {bias_max}); in TEST_F()
|
D | quantized_bias_add_op.cc | 44 const float bias_max = context->input(5).flat<float>()(0); in Compute() local 72 bias_max, &total_min, &total_max); in Compute() 76 bias_min, bias_max, total_min, total_max, in Compute() 81 input_max, bias, bias_min, bias_max, output, &total_min, &total_max); in Compute()
|
D | meta_support.h | 101 float bias_max, float output_min, float output_max,
|
D | meta_support.cc | 349 float bias_max, float output_min, float output_max, in QuantizedBiasAdd() argument 368 CalculateRangeScale<uint8_t>(bias_min, bias_max); in QuantizedBiasAdd()
|