Home
last modified time | relevance | path

Searched refs:clamp_max (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dremove_trivial_quantized_activation_func.cc37 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()
Dremove_trivial_quantized_min_max.cc48 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()
Dquantization_util.cc212 double clamp_max) { in IsArrayQuantizedRangeSubset() argument
265 if (highest_representable_output > clamp_max) { in IsArrayQuantizedRangeSubset()
271 highest_representable_output, clamp_max); in IsArrayQuantizedRangeSubset()
Dquantization_util.h59 double clamp_max);
/external/tensorflow/tensorflow/lite/kernels/
Dcpu_backend_gemm_test.cc123 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, &params_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 …]
Dcpu_backend_gemm_eigen.cc70 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()
Dcpu_backend_gemm_ruy.h62 ruy_spec->clamp_max = params.clamp_max; in MakeRuySpec()
Dcpu_backend_gemm_custom_gemv.h232 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));
Dcpu_backend_gemm_gemmlowp.h103 clamp_stage.max = params.clamp_max;
170 clamp_stage.max = params.clamp_max;
Dcpu_backend_gemm_params.h132 DstScalar clamp_max = std::is_floating_point<DstScalar>::value member
/external/tensorflow/tensorflow/lite/experimental/ruy/
Dkernel_common.h223 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;
Dtest.h715 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 …]
Dspec.h91 DstScalar clamp_max = std::is_floating_point<DstScalar>::value member
Dkernel_sse42.cc181 std::min<std::int32_t>(accum_data[j][i], params.clamp_max);
385 std::min<float>(accum_data[j][i], params.clamp_max);
Dkernel_avxvnni.cc186 std::min<std::int32_t>(accum_data[j][i], params.clamp_max);
392 std::min<float>(accum_data[j][i], params.clamp_max);
Dexample.cc64 spec.clamp_max = 15; in ExampleMulFloatWithBiasAddAndClamp()
Ddispatch.h118 RUY_DCHECK_EQ(spec.clamp_max, std::numeric_limits<std::int32_t>::max()); in EnforceDstSpecSupport()
355 accum = std::min<AccumScalar>(accum, spec.clamp_max);
Dkernel_arm32.cc73 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/
Dmeta_support.h107 quint8 clamp_min, quint8 clamp_max, quint8* output);
Dmeta_support.cc386 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/
Dfully_connected.h80 gemm_params.clamp_max = output_activation_max; in FullyConnected()
Dconv.h119 gemm_params.clamp_max = output_activation_max; in ConvPerChannel()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dcommon.h67 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/
Dtest_fixedpoint.cc123 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/
Dlp_bld_sample.c1009 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()

12