Home
last modified time | relevance | path

Searched refs:scale_factor (Results 1 – 25 of 43) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dquantize_op.cc136 const float scale_factor = in Compute() local
158 scale_factor - in Compute()
167 scale_factor + in Compute()
193 const float scale_factor = in Compute() local
195 min_range = min_output_value / scale_factor; in Compute()
196 max_range = max_output_value / scale_factor; in Compute()
201 scale_factor) in Compute()
208 scale_factor) in Compute()
Ddequantize_op.cc74 const float scale_factor = in Compute() local
85 ((static_cast<int>(in_ptr[i]) + half_range_) * scale_factor) + in Compute()
99 const float scale_factor = in Compute() local
108 out_ptr[i] = static_cast<int>(in_ptr[i]) * scale_factor; in Compute()
Ddequantize_op_test.cc49 const float scale_factor = in ComputeDequantizeMinCombinedUsingEigen() local
56 scale_factor) + in ComputeDequantizeMinCombinedUsingEigen()
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dobject_detector.h58 const float scale_factor, in FillWithSquares() argument
63 SCHECK(scale_factor < 1.0f, "Scale factor too large at %.2f!", scale_factor); in FillWithSquares()
70 descriptor_area.Scale(scale_factor); in FillWithSquares()
75 scale_factor); in FillWithSquares()
Dframe_pair.cc71 const float scale_factor = GetWeightedMedianScale(weights, deltas); in AdjustBox() local
73 if (scale_factor > 0.0f) { in AdjustBox()
74 *scale_x = scale_factor; in AdjustBox()
75 *scale_y = scale_factor; in AdjustBox()
Dobject_tracker_jni.cc118 JNIEnv* env, jobject thiz, jfloat scale_factor);
376 JNIEnv* env, jobject thiz, jfloat scale_factor) { in OBJECT_TRACKER_METHOD()
383 reinterpret_cast<uint16_t*>(keypoint_arr), scale_factor); in OBJECT_TRACKER_METHOD()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_QuantizeAndDequantizeV2.pbtxt86 This op determines the maximum scale_factor that would map the initial
96 5.0]: it would use a scale_factor of -128 / -10.0 = 12.8 In this case, it
99 10.0]: it would use a scale_factor of 127 / 10.0 = 12.7 In this case, it
104 After determining the scale_factor and updating the input range, it applies the
107 output = round(clamp(value, input_min, input_max) * scale_factor) / scale_factor.
/external/ImageMagick/MagickCore/
Dgeometry.c1463 scale_factor; in ParseMetaGeometry() local
1469 scale_factor=1.0; in ParseMetaGeometry()
1473 scale_factor=(double) *width/(double) former_width; in ParseMetaGeometry()
1476 if (scale_factor > ((double) *height/(double) former_height)) in ParseMetaGeometry()
1477 scale_factor=(double) *height/(double) former_height; in ParseMetaGeometry()
1480 if (scale_factor < ((double) *height/(double) former_height)) in ParseMetaGeometry()
1481 scale_factor=(double) *height/(double) former_height; in ParseMetaGeometry()
1486 scale_factor=(double) *width/(double) former_width; in ParseMetaGeometry()
1488 (scale_factor < ((double) *width/(double) former_height))) in ParseMetaGeometry()
1489 scale_factor=(double) *width/(double) former_height; in ParseMetaGeometry()
[all …]
Dmatrix.c881 scale_factor, in MatrixToImage() local
922 scale_factor=0; in MatrixToImage()
926 scale_factor=(double) QuantumRange/min_value; in MatrixToImage()
930 scale_factor=(double) QuantumRange/(max_value-min_value); in MatrixToImage()
967 value=scale_factor*(value-min_value); in MatrixToImage()
Ddisplay.c2899 scale_factor; in XChopImage() local
3224 scale_factor=(double) width/windows->image.ximage->width; in XChopImage()
3226 chop_info.x=(ssize_t) (scale_factor*chop_info.x+0.5); in XChopImage()
3227 chop_info.width=(unsigned int) (scale_factor*chop_info.width+0.5); in XChopImage()
3228 scale_factor=(double) height/windows->image.ximage->height; in XChopImage()
3230 chop_info.y=(ssize_t) (scale_factor*chop_info.y+0.5); in XChopImage()
3231 chop_info.height=(unsigned int) (scale_factor*chop_info.height+0.5); in XChopImage()
3955 scale_factor; in XCompositeImage() local
4272 scale_factor=(double) width/windows->image.ximage->width; in XCompositeImage()
4274 composite_info.x=(ssize_t) (scale_factor*composite_info.x+0.5); in XCompositeImage()
[all …]
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/
Dcreate_constants.py25 def to_cc(x, varname, directory='', scale_factor=1): argument
27 x = (x / np.max(np.abs(x))) * 32768 * scale_factor
74 to_cc(sin1k, 'sin_1k', directory='./', scale_factor=0.1)
/external/fonttools/Lib/fontTools/svgLib/path/
Darc.py86 scale_factor = sqrt(scale_factor_squared)
88 scale_factor = -scale_factor
90 delta *= scale_factor
/external/webrtc/webrtc/common_audio/signal_processing/
Denergy.c22 int* scale_factor) in WebRtcSpl_Energy() argument
36 *scale_factor = scaling; in WebRtcSpl_Energy()
/external/libjpeg-turbo/
Djcparam.c29 const unsigned int *basic_table, int scale_factor, in jpeg_add_quant_table() argument
54 temp = ((long)basic_table[i] * scale_factor + 50L) / 100L; in jpeg_add_quant_table()
113 jpeg_set_linear_quality(j_compress_ptr cinfo, int scale_factor, in jpeg_set_linear_quality() argument
123 scale_factor, force_baseline); in jpeg_set_linear_quality()
125 scale_factor, force_baseline); in jpeg_set_linear_quality()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dquantize_test.cc106 const bfloat16 scale_factor = in GenerateLargeSizeMinCombinedOutput() local
115 static_cast<bfloat16>(input(h, w) + half_range) * scale_factor + in GenerateLargeSizeMinCombinedOutput()
136 const bfloat16 scale_factor = in GenerateMinCombinedOutput() local
144 static_cast<bfloat16>(i + half_range) * scale_factor + range.min; in GenerateMinCombinedOutput()
Dquantize.h140 const tensorflow::bfloat16 scale_factor =
151 sum * xla::ConstantR0<tensorflow::bfloat16>(builder, scale_factor) +
/external/pdfium/core/fxcrt/
Dfx_string.cpp81 float FractionalScale(size_t scale_factor, int value) { in FractionalScale() argument
82 return fraction_scales[scale_factor] * value; in FractionalScale()
/external/strace/
Dstrace-graph44 my $scale_factor = 3.5;
313 $elapsed /= $scale_factor;
/external/libpcap/
Dsf-pcapng.c202 uint64_t scale_factor; /* time stamp scale factor for power-of-10 tsresol */ member
713 ps->ifaces[ps->ifcount - 1].scale_factor = tsresol/ps->user_tsresol; in add_interface()
727 ps->ifaces[ps->ifcount - 1].scale_factor = ps->user_tsresol/tsresol; in add_interface()
1372 frac *= ps->ifaces[interface_id].scale_factor; in pcap_ng_next_packet()
1415 frac /= ps->ifaces[interface_id].scale_factor; in pcap_ng_next_packet()
/external/libxaac/decoder/
Dixheaacd_block.c1234 VOID ixheaacd_process_single_scf(WORD32 scale_factor, WORD32 *x_invquant, in ixheaacd_process_single_scf() argument
1248 if (scale_factor < 24) { in ixheaacd_process_single_scf()
1256 q_factor = 34 - (scale_factor >> 2); in ixheaacd_process_single_scf()
1258 q_factor = 37 - (scale_factor >> 2); in ixheaacd_process_single_scf()
1260 scale_short = ptr_scale_table[(scale_factor & 0x0003)]; in ixheaacd_process_single_scf()
1325 WORD16 scale_factor; in ixheaacd_scale_factor_process_dec() local
1328 scale_factor = *scale_fact++; in ixheaacd_scale_factor_process_dec()
1329 ixheaacd_process_single_scf(scale_factor, x_invquant, *width, in ixheaacd_scale_factor_process_dec()
Dixheaacd_lpp_tran.c849 ia_sbr_scale_fact_struct *scale_factor, in ixheaacd_hf_generator() argument
902 ixheaacd_min32(scale_factor->ov_lb_scale, scale_factor->lb_scale); in ixheaacd_hf_generator()
1130 scale_factor->hb_scale = (WORD16)(common_scale - LPC_SCALE_FACTOR); in ixheaacd_hf_generator()
Dixheaacd_qmf_dec.c689 WORD32 scale_factor; in ixheaacd_cplx_synt_qmffilt() local
758 code_scale_factor = scale_factor = sbr_scale_factor->ps_scale; in ixheaacd_cplx_synt_qmffilt()
761 scale_factor = sbr_scale_factor->hb_scale; in ixheaacd_cplx_synt_qmffilt()
765 high_band_scale_factor = (st_syn_scale - scale_factor); in ixheaacd_cplx_synt_qmffilt()
/external/webrtc/webrtc/p2p/base/
Dpseudotcp.cc1245 void PseudoTcp::applyWindowScaleOption(uint8_t scale_factor) { in applyWindowScaleOption() argument
1246 m_swnd_scale = scale_factor; in applyWindowScaleOption()
1255 uint8_t scale_factor = 0; in resizeReceiveBuffer() local
1260 ++scale_factor; in resizeReceiveBuffer()
1265 new_size <<= scale_factor; in resizeReceiveBuffer()
1275 m_rwnd_scale = scale_factor; in resizeReceiveBuffer()
Dpseudotcp.h182 void applyWindowScaleOption(uint8_t scale_factor);
/external/ImageMagick/coders/
Dviff.c212 scale_factor, in ReadVIFFImage() local
557 scale_factor=1.0; in ReadVIFFImage()
594 scale_factor=0; in ReadVIFFImage()
598 scale_factor=(double) QuantumRange/min_value; in ReadVIFFImage()
602 scale_factor=(double) QuantumRange/(max_value-min_value); in ReadVIFFImage()
620 value=(value-min_value)*scale_factor; in ReadVIFFImage()

12