/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
D | remove_trivial_quantized_activation_func.cc | 37 double clamp_max; in IsTrivialUnfusedActivationFunc() local 41 clamp_max = std::numeric_limits<double>::infinity(); in IsTrivialUnfusedActivationFunc() 45 clamp_max = 1.0; in IsTrivialUnfusedActivationFunc() 49 clamp_max = 6.0; in IsTrivialUnfusedActivationFunc() 57 clamp_max); in IsTrivialUnfusedActivationFunc() 65 double clamp_max; in IsTrivialFusedActivationFunc() local 71 clamp_max = std::numeric_limits<double>::infinity(); in IsTrivialFusedActivationFunc() 75 clamp_max = 1.0; in IsTrivialFusedActivationFunc() 79 clamp_max = 6.0; in IsTrivialFusedActivationFunc() 89 clamp_max); in IsTrivialFusedActivationFunc()
|
D | remove_trivial_quantized_min_max.cc | 48 double clamp_max; in IsTrivialMinMax() local 52 clamp_max = clamp_value; in IsTrivialMinMax() 56 clamp_max = std::numeric_limits<double>::infinity(); in IsTrivialMinMax() 65 clamp_max); in IsTrivialMinMax()
|
D | quantization_util.cc | 212 double clamp_max) { in IsArrayQuantizedRangeSubset() argument 265 if (highest_representable_output > clamp_max) { in IsArrayQuantizedRangeSubset() 271 highest_representable_output, clamp_max); in IsArrayQuantizedRangeSubset()
|
D | quantization_util.h | 59 double clamp_max);
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | cpu_backend_gemm_test.cc | 123 void Clamp(const std::vector<Scalar>& src, Scalar clamp_min, Scalar clamp_max, in Clamp() argument 127 (*dst)[i] = std::max(std::min(src[i], clamp_max), clamp_min); in Clamp() 134 DstScalar clamp_min, DstScalar clamp_max, in Clamp() argument 138 dst->clamp_max = clamp_max; in Clamp() 262 DstScalar clamp_min, clamp_max; in PerformGemmThenCompareResultsThenAgainWithClamping() local 265 clamp_max = expected_median; in PerformGemmThenCompareResultsThenAgainWithClamping() 266 Clamp(expected, clamp_min, clamp_max, &expected_with_clamp); in PerformGemmThenCompareResultsThenAgainWithClamping() 267 Clamp(params, clamp_min, clamp_max, ¶ms_with_clamp); in PerformGemmThenCompareResultsThenAgainWithClamping() 274 clamp_max = std::numeric_limits<DstScalar>::max(); in PerformGemmThenCompareResultsThenAgainWithClamping() 275 Clamp(expected, clamp_min, clamp_max, &expected_with_clamp); in PerformGemmThenCompareResultsThenAgainWithClamping() [all …]
|
D | cpu_backend_gemm_eigen.cc | 70 BiasAndClamp(params.clamp_min, params.clamp_max, dst_params.rows, in Run() 73 eigen_dst = eigen_dst.cwiseMin(params.clamp_max).cwiseMax(params.clamp_min); in Run()
|
D | cpu_backend_gemm_ruy.h | 62 ruy_spec->clamp_max = params.clamp_max; in MakeRuySpec()
|
D | cpu_backend_gemm_custom_gemv.h | 232 std::uint8_t clamp_max, std::uint8_t* dst) { in ClampAndStore() argument 239 res8 = vmin_u8(res8, vdup_n_u8(clamp_max)); in ClampAndStore() 248 std::int8_t clamp_max, std::int8_t* dst) { in ClampAndStore() argument 255 res8 = vmin_s8(res8, vdup_n_s8(clamp_max)); in ClampAndStore() 264 std::int16_t clamp_max, std::int16_t* dst) { in ClampAndStore() argument 269 res16 = vmin_s16(res16, vdup_n_s16(clamp_max)); in ClampAndStore() 580 ClampAndStore(reduced, params.clamp_min, params.clamp_max, 769 reduced = vminq_f32(reduced, vdupq_n_f32(params.clamp_max));
|
D | cpu_backend_gemm_gemmlowp.h | 103 clamp_stage.max = params.clamp_max; 170 clamp_stage.max = params.clamp_max;
|
D | cpu_backend_gemm_params.h | 132 DstScalar clamp_max = std::is_floating_point<DstScalar>::value member
|
/external/tensorflow/tensorflow/lite/experimental/ruy/ |
D | kernel_common.h | 223 accum = std::min<AccumScalar>(accum, spec.clamp_max); 319 std::int32_t clamp_max; 390 params->clamp_max = spec.clamp_max; 419 float clamp_max; 459 params->clamp_max = spec.clamp_max;
|
D | test.h | 715 clamp_stage.max = spec.clamp_max; 856 if (spec.clamp_max == std::numeric_limits<DstScalar>::infinity() && 861 .cwiseMin(spec.clamp_max) 865 if (spec.clamp_max == std::numeric_limits<DstScalar>::infinity() && 870 .cwiseMin(spec.clamp_max) 964 if (spec.clamp_max == std::numeric_limits<Scalar>::infinity() && 972 .cwiseMin(spec.clamp_max) 976 if (spec.clamp_max == std::numeric_limits<Scalar>::infinity() && 982 .cwiseMin(spec.clamp_max) 1117 if (spec.clamp_max == std::numeric_limits<Scalar>::infinity() && [all …]
|
D | spec.h | 91 DstScalar clamp_max = std::is_floating_point<DstScalar>::value member
|
D | kernel_sse42.cc | 181 std::min<std::int32_t>(accum_data[j][i], params.clamp_max); 385 std::min<float>(accum_data[j][i], params.clamp_max);
|
D | kernel_avxvnni.cc | 186 std::min<std::int32_t>(accum_data[j][i], params.clamp_max); 392 std::min<float>(accum_data[j][i], params.clamp_max);
|
D | example.cc | 64 spec.clamp_max = 15; in ExampleMulFloatWithBiasAddAndClamp()
|
D | dispatch.h | 118 RUY_DCHECK_EQ(spec.clamp_max, std::numeric_limits<std::int32_t>::max()); in EnforceDstSpecSupport() 355 accum = std::min<AccumScalar>(accum, spec.clamp_max);
|
D | kernel_arm32.cc | 73 static_assert(offsetof(Params, clamp_max) == RUY_OFFSET_CLAMP_MAX, ""); in CheckOffsetsInKernelParamsFloat32() 579 static_assert(offsetof(Params, clamp_max) == RUY_OFFSET_CLAMP_MAX, ""); in CheckOffsetsInKernelParams8bit()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | meta_support.h | 107 quint8 clamp_min, quint8 clamp_max, quint8* output);
|
D | meta_support.cc | 386 quint8 clamp_min, quint8 clamp_max, quint8* output) { in Clamp() argument 398 params.kernel.max = clamp_max; in Clamp()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/ |
D | fully_connected.h | 80 gemm_params.clamp_max = output_activation_max; in FullyConnected()
|
D | conv.h | 119 gemm_params.clamp_max = output_activation_max; in ConvPerChannel()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | common.h | 67 inline void BiasAndClamp(float clamp_min, float clamp_max, int bias_size, in BiasAndClamp() argument 80 const auto clamp_max_vec = vdupq_n_f32(clamp_max); in BiasAndClamp() 119 clamp_min, clamp_max); in BiasAndClamp() 127 array_data[array_offset + i] + bias_data[i], clamp_min, clamp_max); in BiasAndClamp()
|
/external/gemmlowp/test/ |
D | test_fixedpoint.cc | 123 const double clamp_max = std::numeric_limits<std::int32_t>::max(); in ReferenceOp() local 124 const double clamped = std::min(clamp_max, std::max(clamp_min, d)); in ReferenceOp()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_sample.c | 1009 LLVMValueRef clamp_max; in lp_build_linear_mip_levels() local 1044 clamp_max = LLVMBuildICmp(builder, LLVMIntSGE, in lp_build_linear_mip_levels() 1048 *level0_out = LLVMBuildSelect(builder, clamp_max, in lp_build_linear_mip_levels() 1051 *level1_out = LLVMBuildSelect(builder, clamp_max, in lp_build_linear_mip_levels() 1054 *lod_fpart_inout = LLVMBuildSelect(builder, clamp_max, in lp_build_linear_mip_levels()
|