/external/ComputeLibrary/tests/validation/reference/ |
D | ReductionOperation.cpp | 41 …ration(const T *ptr, int reduce_elements, ReductionOperation op, int stride, RoundingPolicy policy) in reduce_operation() 184 …src, const TensorShape &dst_shape, unsigned int axis, ReductionOperation op, RoundingPolicy policy) in compute_reduction_operation() 278 … int axis, ReductionOperation op, QuantizationInfo quantization_info_output, RoundingPolicy policy) in reduction_operation() 285 … int axis, ReductionOperation op, QuantizationInfo quantization_info_output, RoundingPolicy policy) in reduction_operation() 308 … int axis, ReductionOperation op, QuantizationInfo quantization_info_output, RoundingPolicy policy) in reduction_operation() 331 …ationInfo quantization_info_output = QuantizationInfo(), RoundingPolicy policy = RoundingPolicy::T… 333 …ationInfo quantization_info_output = QuantizationInfo(), RoundingPolicy policy = RoundingPolicy::T… 336 …ationInfo quantization_info_output = QuantizationInfo(), RoundingPolicy policy = RoundingPolicy::T… 338 …ationInfo quantization_info_output = QuantizationInfo(), RoundingPolicy policy = RoundingPolicy::T… 340 …ationInfo quantization_info_output = QuantizationInfo(), RoundingPolicy policy = RoundingPolicy::T… [all …]
|
D | PixelWiseMultiplication.cpp | 58 T3 mul(const T1 src1, const T2 src2, float scale, ConvertPolicy convert_policy, RoundingPolicy roun… in mul() 75 case(RoundingPolicy::TO_ZERO): in mul() 78 case(RoundingPolicy::TO_NEAREST_UP): in mul() 81 case(RoundingPolicy::TO_NEAREST_EVEN): in mul() 95 …src1, const int32_t src2, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in mul() 141 case(RoundingPolicy::TO_ZERO): in mul() 144 case(RoundingPolicy::TO_NEAREST_UP): in mul() 147 case(RoundingPolicy::TO_NEAREST_EVEN): in mul() 183 float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_policy, in unroll() 208 float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_policy, in unroll() [all …]
|
D | QuantizationLayer.cpp | 45 constexpr auto rounding_policy = RoundingPolicy::TO_NEAREST_EVEN; in quantization_layer() 47 constexpr auto rounding_policy = RoundingPolicy::TO_ZERO; in quantization_layer() 68 dst[i] = quantize_qasymm8_signed((src[i]), qinfo, RoundingPolicy::TO_NEAREST_EVEN); in quantization_layer() 70 dst[i] = quantize_qasymm8_signed((src[i]), qinfo, RoundingPolicy::TO_ZERO); in quantization_layer()
|
D | ReductionOperation.h | 41 …ationInfo quantization_info_output = QuantizationInfo(), RoundingPolicy policy = RoundingPolicy::T…
|
/external/ComputeLibrary/arm_compute/graph/ |
D | LayerDescriptors.h | 79 …fo(), ConvertPolicy c_policy = ConvertPolicy::SATURATE, RoundingPolicy r_policy = RoundingPolicy::… 88 RoundingPolicy r_policy; /**< Rounding policy */ 104 RoundingPolicy r_policy = RoundingPolicy::TO_ZERO, 113 RoundingPolicy r_policy; /**< Rounding policy */
|
/external/ComputeLibrary/arm_compute/core/ |
D | QuantizationInfo.h | 240 …ZED_TYPE quantize(float value, const UniformQuantizationInfo &qinfo, RoundingPolicy rounding_polic… in quantize() 242 if(rounding_policy == RoundingPolicy::TO_NEAREST_UP) in quantize() 260 …quantize(float value, const QuantizationInfo &qinfo, RoundingPolicy rounding_policy = RoundingPoli… 303 …uantize_qasymm8(float value, const INFO_TYPE &qinfo, RoundingPolicy rounding_policy = RoundingPoli… 317 …_qasymm8_signed(float value, const INFO_TYPE &qinfo, RoundingPolicy rounding_policy = RoundingPoli… 331 … int quantized = arm_compute::round(value / qinfo.uniform().scale, RoundingPolicy::TO_NEAREST_UP); in quantize_qsymm8() 346 …int quantized = arm_compute::round(value / qinfo.scale()[channel_id], RoundingPolicy::TO_NEAREST_U… 498 …6(float value, const UniformQuantizationInfo &qinfo, RoundingPolicy rounding_policy = RoundingPoli… 549 …6(float value, const UniformQuantizationInfo &qinfo, RoundingPolicy rounding_policy = RoundingPoli…
|
D | Rounding.h | 30 enum class RoundingPolicy enum 44 int round(float x, RoundingPolicy rounding_policy);
|
/external/ComputeLibrary/src/core/ |
D | Rounding.cpp | 35 int arm_compute::round(float x, RoundingPolicy rounding_policy) in round() 41 case RoundingPolicy::TO_ZERO: in round() 46 case RoundingPolicy::TO_NEAREST_UP: in round() 51 case RoundingPolicy::TO_NEAREST_EVEN: in round()
|
/external/ComputeLibrary/tests/validation/CL/ |
D | PixelWiseMultiplication.cpp | 70 framework::dataset::make("RoundingPolicy", RoundingPolicy::RP)), ACT), \ 116 …utput_info.clone()->set_is_resizable(false), scale, ConvertPolicy::WRAP, RoundingPolicy::TO_ZERO)); 129 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)), 141 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)), 168 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)), 201 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_EVEN)), 218 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_EVEN)), 235 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_EVEN)), 255 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_EVEN)), 274 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_EVEN)), [all …]
|
/external/ComputeLibrary/tests/validation/fixtures/ |
D | PixelWiseMultiplicationFixture.h | 55 RoundingPolicy rounding_policy, in setup() 75 … float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_policy, in compute_target() 134 … float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_policy, in compute_reference() 159 … dt_in2, DataType dt_out, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in setup() 171 … dt_in2, DataType dt_out, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in setup() 184 … dt_in1, DataType dt_in2, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in setup() 196 … dt_in1, DataType dt_in2, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in setup() 208 … dt_in1, DataType dt_in2, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in setup() 221 … dt_in2, DataType dt_out, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in setup() 234 … dt_in2, DataType dt_out, float scale, ConvertPolicy convert_policy, RoundingPolicy rounding_polic… in setup()
|
D | LSTMLayerFixture.h | 416 …, T, T>(cell_state_in, cell_to_forget_w, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO, data… in compute_reference() 425 … T, T>(forget_gate, forget_layer_norm_w, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 447 …T, T, T>(cell_state_in, cell_to_input_w, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 455 …T, T, T>(input_gate, input_layer_norm_w, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 465 …ion<T, T, T>(cell_state_in, forget_gate, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 472 …T, T>(cell_state_out, cell_layer_norm_w, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 477 …ion<T, T, T>(cell_state_out, input_gate, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 492 … T, T>(cell_state_out, cell_to_output_w, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 500 …on<T, T, T>(output, output_layer_norm_w, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference() 508 …<T, T, T>(output, cell_state_activation, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in compute_reference()
|
/external/ComputeLibrary/src/cpu/kernels/ |
D | CpuQuantizeKernel.cpp | 211 constexpr RoundingPolicy rounding_policy = RoundingPolicy::TO_NEAREST_EVEN; in run_quantize_qasymm8() 213 constexpr RoundingPolicy rounding_policy = RoundingPolicy::TO_ZERO; in run_quantize_qasymm8() 254 constexpr RoundingPolicy rounding_policy = RoundingPolicy::TO_NEAREST_EVEN; in run_quantize_qasymm16() 256 constexpr RoundingPolicy rounding_policy = RoundingPolicy::TO_ZERO; in run_quantize_qasymm16()
|
/external/ComputeLibrary/src/runtime/NEON/functions/ |
D | NELSTMLayer.cpp | 131 …cell_to_forget_weights(), &_forget_gate_out4, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 148 …yer_norm_weights(), &_forget_layer_norm_out1, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 193 …s.cell_to_input_weights(), &_input_gate_out4, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 211 …ayer_norm_weights(), &_input_layer_norm_out1, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 247 …layer_norm_weights(), &_cell_layer_norm_out1, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 256 …e_out_ptr, input_gate_out, &_cell_state_out5, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 258 …t_gate_out, cell_state_in, &_cell_state_out3, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 295 …m_params.cell_to_output_weights(), &_output3, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 314 …yer_norm_weights(), &_output_layer_norm_out1, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 338 …ation, output_gate_out, output_state_out_tmp, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() [all …]
|
D | NENormalizationLayer.cpp | 58 …f.configure(input, input, &_input_squared, 1.0f, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO); in configure() 70 …plication::validate(input, input, output, 1.0f, ConvertPolicy::SATURATE, RoundingPolicy::TO_ZERO)); in validate()
|
/external/ComputeLibrary/src/runtime/CL/functions/ |
D | CLLSTMLayer.cpp | 147 …to_forget_weights(), &_forget_gate_out4, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in configure() 165 RoundingPolicy::TO_NEAREST_EVEN); in configure() 213 …l_to_input_weights(), &_input_gate_out4, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in configure() 232 RoundingPolicy::TO_NEAREST_EVEN); in configure() 270 RoundingPolicy::TO_NEAREST_EVEN); in configure() 279 …_ptr, input_gate_out, &_cell_state_out5, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in configure() 281 …e_out, cell_state_in, &_cell_state_out3, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in configure() 320 …ams.cell_to_output_weights(), &_output3, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in configure() 340 RoundingPolicy::TO_NEAREST_EVEN); in configure() 364 …, output_gate_out, output_state_out_tmp, 1, ConvertPolicy::SATURATE, RoundingPolicy::TO_NEAREST_EV… in configure() [all …]
|
D | CLPixelWiseMultiplication.cpp | 52 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info) in configure() 58 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info) in configure() 68 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info) in validate()
|
/external/ComputeLibrary/arm_compute/runtime/CL/functions/ |
D | CLPixelWiseMultiplication.h | 86 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info… 102 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info… 117 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info…
|
/external/ComputeLibrary/tests/validation/NEON/ |
D | PixelWiseMultiplication.cpp | 66 … framework::dataset::make("RoundingPolicy", { RoundingPolicy::TO_NEAREST_UP })); 70 … framework::dataset::make("RoundingPolicy", { RoundingPolicy::TO_ZERO })); 101 … framework::dataset::make("RoundingPolicy", RoundingPolicy::RP)), \ 216 …le(false), &output_info.clone()->set_is_resizable(false), scale, policy, RoundingPolicy::TO_ZERO)); 228 …ingle_tensor_info, &single_tensor_info, scale_unity, ConvertPolicy::WRAP, RoundingPolicy::TO_ZERO); in TEST_CASE() 240 …aller_tensor_info, &larger_tensor_info, scale_unity, ConvertPolicy::WRAP, RoundingPolicy::TO_ZERO); in TEST_CASE() 252 …ller_tensor_info, &smaller_tensor_info, scale_unity, ConvertPolicy::WRAP, RoundingPolicy::TO_ZERO); in TEST_CASE() 266 …ation::validate(&info0, &info1, &info0, scale_unity, ConvertPolicy::WRAP, RoundingPolicy::TO_ZERO); in TEST_CASE() 269 …ation::validate(&info0, &info1, &info1, scale_unity, ConvertPolicy::WRAP, RoundingPolicy::TO_ZERO); in TEST_CASE() 444 … framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)), [all …]
|
/external/ComputeLibrary/src/gpu/cl/operators/ |
D | ClMul.h | 67 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info… 75 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info…
|
D | ClMul.cpp | 37 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info) in configure() 46 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info) in validate()
|
/external/ComputeLibrary/src/cpu/operators/ |
D | CpuMul.h | 63 …*src2, ITensorInfo *dst, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_polic… 71 … const ITensorInfo *dst, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_polic…
|
/external/ComputeLibrary/src/gpu/cl/kernels/ |
D | ClMulKernel.h | 75 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info… 83 …ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info…
|
/external/ComputeLibrary/arm_compute/runtime/NEON/functions/ |
D | NEPixelWiseMultiplication.h | 96 …input2, ITensor *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_polic… 123 …nst ITensorInfo *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_polic…
|
/external/armnn/src/backends/cl/workloads/ |
D | ClMultiplicationWorkload.cpp | 42 arm_compute::RoundingPolicy::TO_ZERO, in ClMultiplicationWorkloadValidate() 74 arm_compute::RoundingPolicy::TO_NEAREST_EVEN, in ClMultiplicationWorkload()
|
/external/armnn/src/backends/neon/workloads/ |
D | NeonMultiplicationWorkload.cpp | 43 arm_compute::RoundingPolicy::TO_ZERO, in NeonMultiplicationWorkloadValidate() 73 arm_compute::RoundingPolicy::TO_ZERO, in NeonMultiplicationWorkload()
|