Home
last modified time | relevance | path

Searched refs:zp (Results 1 – 25 of 55) sorted by relevance

123

/third_party/curl/lib/
Dcontent_encoding.c136 struct zlib_params *zp) in process_trailer() argument
138 z_stream *z = &zp->z; in process_trailer()
140 uInt len = z->avail_in < zp->trailerlen? z->avail_in: zp->trailerlen; in process_trailer()
145 zp->trailerlen -= len; in process_trailer()
150 if(result || !zp->trailerlen) in process_trailer()
151 result = exit_zlib(data, z, &zp->zlib_init, result); in process_trailer()
154 zp->zlib_init = ZLIB_EXTERNAL_TRAILER; in process_trailer()
163 struct zlib_params *zp = (struct zlib_params *) &writer->params; in inflate_stream() local
164 z_stream *z = &zp->z; /* zlib state structure */ in inflate_stream()
172 if(zp->zlib_init != ZLIB_INIT && in inflate_stream()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dquant_dtype_cast_fp16.c21 …Int8ToFp16(const int8_t *quant_values, float16_t *real_values, float scale, int32_t zp, int size) { in DoDequantizeInt8ToFp16() argument
27 real_values[i] = (quant_values[i] - zp) * scale; in DoDequantizeInt8ToFp16()
32 …Fp16ToInt8(const float16_t *real_values, int8_t *quant_values, float scale, int32_t zp, int size) { in DoQuantizeFp16ToInt8() argument
42 float temp = round((float)real_values[i] / scale + zp); in DoQuantizeFp16ToInt8()
54 …nt8ToFp16(const uint8_t *quant_values, float16_t *real_values, float scale, int32_t zp, int size) { in DoDequantizeUInt8ToFp16() argument
55 uint8_t zp_ = (uint8_t)zp; in DoDequantizeUInt8ToFp16()
66 …16ToUInt8(const float16_t *real_values, uint8_t *quant_values, float scale, int32_t zp, int size) { in DoQuantizeFp16ToUInt8() argument
76 float temp = round((float)real_values[i] / scale + zp); in DoQuantizeFp16ToUInt8()
Dquant_dtype_cast_fp16.h26 …eInt8ToFp16(const int8_t *quant_values, float16_t *real_values, float scale, int32_t zp, int size);
27 …eFp16ToInt8(const float16_t *real_values, int8_t *quant_values, float scale, int32_t zp, int size);
29 …Int8ToFp16(const uint8_t *quant_values, float16_t *real_values, float scale, int32_t zp, int size);
30 …p16ToUInt8(const float16_t *real_values, uint8_t *quant_values, float scale, int32_t zp, int size);
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/operator_library/kernels/nnacl/int8/
Dquant_dtype_cast_int8.c21 int DoDequantizeInt8ToFp32(const int8_t *quant_values, float *real_values, float scale, int32_t zp,… in DoDequantizeInt8ToFp32() argument
27 real_values[i] = (quant_values[i] - zp) * scale; in DoDequantizeInt8ToFp32()
32 int DoQuantizeFp32ToInt8(const float *real_values, int8_t *quant_values, float scale, int32_t zp, i… in DoQuantizeFp32ToInt8() argument
39 zp += 128; in DoQuantizeFp32ToInt8()
46 int temp = round(real_values[i] * inverse_scale + zp); in DoQuantizeFp32ToInt8()
58 …zeUInt8ToFp32(const uint8_t *quant_values, float *real_values, float scale, int32_t zp, int size) { in DoDequantizeUInt8ToFp32() argument
64 real_values[i] = (float)((int)quant_values[i] - zp) * scale; in DoDequantizeUInt8ToFp32()
69 int DoQuantizeFp32ToUInt8(const float *real_values, uint8_t *quant_values, float scale, int32_t zp,… in DoQuantizeFp32ToUInt8() argument
78 float temp = (float)round(real_values[i] * 1.0 / scale + zp); in DoQuantizeFp32ToUInt8()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dquant_dtype_cast_int8.c21 int DoDequantizeInt8ToFp32(const int8_t *quant_values, float *real_values, float scale, int32_t zp,… in DoDequantizeInt8ToFp32() argument
27 real_values[i] = (quant_values[i] - zp) * scale; in DoDequantizeInt8ToFp32()
32 int DoQuantizeFp32ToInt8(const float *real_values, int8_t *quant_values, float scale, int32_t zp, i… in DoQuantizeFp32ToInt8() argument
39 zp += 128; in DoQuantizeFp32ToInt8()
46 int temp = round(real_values[i] * inverse_scale + zp); in DoQuantizeFp32ToInt8()
58 …zeUInt8ToFp32(const uint8_t *quant_values, float *real_values, float scale, int32_t zp, int size) { in DoDequantizeUInt8ToFp32() argument
64 real_values[i] = (float)((int)quant_values[i] - zp) * scale; in DoDequantizeUInt8ToFp32()
69 int DoQuantizeFp32ToUInt8(const float *real_values, uint8_t *quant_values, float scale, int32_t zp,… in DoQuantizeFp32ToUInt8() argument
78 float temp = (float)round(real_values[i] * 1.0 / scale + zp); in DoQuantizeFp32ToUInt8()
Dquantize.c73 …QuantizeToUint8(float real_value, float scale, int32_t zp) { return round(real_value / scale + zp)… in QuantizeToUint8() argument
75 … QuantizeToInt8(float real_value, float scale, int32_t zp) { return round(real_value / scale + zp)… in QuantizeToInt8() argument
77 void CalculateActivationRangeQuantized(bool is_relu, bool is_relu6, int32_t zp, float scale, int *m… in CalculateActivationRangeQuantized() argument
80 int32_t quantized_zero = QuantizeToInt8(0, scale, zp); in CalculateActivationRangeQuantized()
81 int32_t quantized_six = QuantizeToInt8(6, scale, zp); in CalculateActivationRangeQuantized()
Dquant_dtype_cast_int8.h31 int DoDequantizeInt8ToFp32(const int8_t *quant_values, float *real_values, float scale, int32_t zp,…
32 int DoQuantizeFp32ToInt8(const float *real_values, int8_t *quant_values, float scale, int32_t zp, i…
34 …izeUInt8ToFp32(const uint8_t *quant_values, float *real_values, float scale, int32_t zp, int size);
35 int DoQuantizeFp32ToUInt8(const float *real_values, uint8_t *quant_values, float scale, int32_t zp,…
Dcommon_func_int8.c22 int32_t left_shift, int32_t right_shift, int32_t zp, int size) { in PostConvFuncCommInt8() argument
35 value = MultiplyByQuantizedMultiplier(value, multiplier, left_shift, right_shift) + zp; in PostConvFuncCommInt8()
45 … int32_t multiplier, int32_t left_shift, int32_t right_shift, int32_t zp, int32_t mini, in PostFuncInt8C4() argument
50 left_shift, right_shift, zp, C4NUM); in PostFuncInt8C4()
55 right_shift, zp, mini, maxi); in PostFuncInt8C4()
Dquantize.h204 uint8_t QuantizeToUint8(float real_value, float scale, int32_t zp);
206 int32_t QuantizeToInt8(float real_value, float scale, int32_t zp);
208 void CalculateActivationRangeQuantized(bool is_relu, bool is_relu6, int32_t zp, float scale, int *m…
Dconv3x3_int8.c21 int16x8_t zp = vdupq_n_s16(input_zp); in Conv3x3Int8InputUnit() local
23 int16x8_t d00 = vsubq_s16(vld1q_s16(tmp_data), zp); in Conv3x3Int8InputUnit()
24 int16x8_t d01 = vsubq_s16(vld1q_s16(tmp_data + 8), zp); in Conv3x3Int8InputUnit()
25 int16x8_t d02 = vsubq_s16(vld1q_s16(tmp_data + 2 * 8), zp); in Conv3x3Int8InputUnit()
26 int16x8_t d03 = vsubq_s16(vld1q_s16(tmp_data + 3 * 8), zp); in Conv3x3Int8InputUnit()
28 int16x8_t d10 = vsubq_s16(vld1q_s16(tmp_data + 4 * 8), zp); in Conv3x3Int8InputUnit()
29 int16x8_t d11 = vsubq_s16(vld1q_s16(tmp_data + 5 * 8), zp); in Conv3x3Int8InputUnit()
30 int16x8_t d12 = vsubq_s16(vld1q_s16(tmp_data + 6 * 8), zp); in Conv3x3Int8InputUnit()
31 int16x8_t d13 = vsubq_s16(vld1q_s16(tmp_data + 7 * 8), zp); in Conv3x3Int8InputUnit()
33 int16x8_t d20 = vsubq_s16(vld1q_s16(tmp_data + 8 * 8), zp); in Conv3x3Int8InputUnit()
[all …]
Dspace_to_batch_int8.c52 …tchPaddingNHWCInt8(const int8_t *input, int8_t *output, SpaceToBatchParameter *param, int32_t zp) { in DoSpaceToBatchPaddingNHWCInt8() argument
79 memset(out_ptr, zp, channel * sizeof(int8_t)); in DoSpaceToBatchPaddingNHWCInt8()
Dspace_to_batch_int8.h27 …atchPaddingNHWCInt8(const int8_t *input, int8_t *output, SpaceToBatchParameter *param, int32_t zp);
Dcommon_func_int8.h31 … int32_t multiplier, int32_t left_shift, int32_t right_shift, int32_t zp, int32_t mini,
69 int32_t zp, int32_t mini, int32_t maxi);
/third_party/ffmpeg/libavcodec/
Diirfilter.c86 double zp[2]; in butterworth_init_coeffs() local
89 zp[0] = cos(th) * wa; in butterworth_init_coeffs()
90 zp[1] = sin(th) * wa; in butterworth_init_coeffs()
91 a_re = zp[0] + 2.0; in butterworth_init_coeffs()
92 c_re = zp[0] - 2.0; in butterworth_init_coeffs()
94 c_im = zp[1]; in butterworth_init_coeffs()
95 zp[0] = (a_re * c_re + a_im * c_im) / (c_re * c_re + c_im * c_im); in butterworth_init_coeffs()
96 zp[1] = (a_im * c_re - a_re * c_im) / (c_re * c_re + c_im * c_im); in butterworth_init_coeffs()
101 p[j][0] = a_re * zp[0] - a_im * zp[1] + p[j - 1][0]; in butterworth_init_coeffs()
102 p[j][1] = a_re * zp[1] + a_im * zp[0] + p[j - 1][1]; in butterworth_init_coeffs()
[all …]
/third_party/icu/icu4c/source/tools/tzcode/
Dzic.c169 static void outzone(const struct zone * zp, int ntzones);
900 register struct zone * zp; in associate() local
934 zp = &zones[i]; in associate()
935 zp->z_rules = NULL; in associate()
936 zp->z_nrules = 0; in associate()
944 zp = &zones[i]; in associate()
945 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
947 zp->z_rules = rp; in associate()
948 zp->z_nrules = out - base; in associate()
952 zp = &zones[i]; in associate()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
Dzic.c169 static void outzone(const struct zone * zp, int ntzones);
900 register struct zone * zp; in associate() local
934 zp = &zones[i]; in associate()
935 zp->z_rules = NULL; in associate()
936 zp->z_nrules = 0; in associate()
944 zp = &zones[i]; in associate()
945 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
947 zp->z_rules = rp; in associate()
948 zp->z_nrules = out - base; in associate()
952 zp = &zones[i]; in associate()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/tools/tzcode/
Dzic.c169 static void outzone(const struct zone * zp, int ntzones);
900 register struct zone * zp; in associate() local
934 zp = &zones[i]; in associate()
935 zp->z_rules = NULL; in associate()
936 zp->z_nrules = 0; in associate()
944 zp = &zones[i]; in associate()
945 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
947 zp->z_rules = rp; in associate()
948 zp->z_nrules = out - base; in associate()
952 zp = &zones[i]; in associate()
[all …]
/third_party/tzdata/
Dzic.c177 static void outzone(const struct zone * zp, ptrdiff_t ntzones);
1105 register struct zone * zp; in associate() local
1138 zp = &zones[i]; in associate()
1139 zp->z_rules = NULL; in associate()
1140 zp->z_nrules = 0; in associate()
1148 zp = &zones[i]; in associate()
1149 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
1151 zp->z_rules = rp; in associate()
1152 zp->z_nrules = out - base; in associate()
1156 zp = &zones[i]; in associate()
[all …]
/third_party/boost/libs/beast/test/beast/zlib/
Dinflate_stream.cpp112 z_params zp; member in boost::beast::zlib::inflate_stream_test::BeastCompressor
120 zp = {}; in init()
125 zp = {}; in init()
130 virtual std::size_t avail_in() const noexcept override { return zp.avail_in; } in avail_in()
131 virtual void avail_in(std::size_t n) noexcept override { zp.avail_in = n; } in avail_in()
132 virtual void const* next_in() const noexcept override { return zp.next_in; } in next_in()
133 virtual void next_in(const void* ptr) noexcept override { zp.next_in = ptr; } in next_in()
134 virtual std::size_t avail_out() const noexcept override { return zp.avail_out; } in avail_out()
135 virtual void avail_out(std::size_t n_out) noexcept override { zp.avail_out = n_out; } in avail_out()
136 virtual void* next_out() const noexcept override { return zp.next_out; } in next_out()
[all …]
Ddeflate_stream.cpp113 z_params zp; member in boost::beast::zlib::deflate_stream_test::BeastCompressor
119 zp = {}; in init()
129 zp = {}; in init()
138 virtual std::size_t avail_in() const noexcept override { return zp.avail_in; } in avail_in()
139 virtual void avail_in(std::size_t n) noexcept override { zp.avail_in = n; } in avail_in()
140 virtual void const* next_in() const noexcept override { return zp.next_in; } in next_in()
141 virtual void next_in(const void* ptr) noexcept override { zp.next_in = ptr; } in next_in()
142 virtual std::size_t avail_out() const noexcept override { return zp.avail_out; } in avail_out()
143 virtual void avail_out(std::size_t n_out) noexcept override { zp.avail_out = n_out; } in avail_out()
144 virtual void* next_out() const noexcept override { return zp.next_out; } in next_out()
[all …]
/third_party/boost/boost/math/special_functions/detail/
Dhypergeometric_pade.hpp19 inline T hypergeometric_1F1_pade(const T& cp, const T& zp, const Policy& ) in hypergeometric_1F1_pade() argument
26 const T z = -zp; in hypergeometric_1F1_pade()
75 inline T hypergeometric_2F1_pade(const T& bp, const T& cp, const T& zp, const Policy& pol) in hypergeometric_2F1_pade() argument
82 const T z = -zp; in hypergeometric_2F1_pade()
Dhypergeometric_rational.hpp20 inline T hypergeometric_1F1_rational(const T& ap, const T& cp, const T& zp, const Policy& ) in hypergeometric_1F1_rational() argument
27 const T z = -zp; in hypergeometric_1F1_rational()
88 …inline T hypergeometric_2F1_rational(const T& ap, const T& bp, const T& cp, const T& zp, const uns… in hypergeometric_2F1_rational() argument
96 const T z = -zp; in hypergeometric_2F1_rational()
/third_party/mindspore/mindspore/compression/quant/
Dquant_utils.py65 zp = np.zeros(input_min.shape)
68 zp = np.floor(zp_double + 0.5)
70 return scale, zp
140 scale, zp = cal_quantization_params(
144 return scale, zp, maxq, minq
/third_party/mindspore/mindspore/lite/src/
Dweight_decoder.h94 auto zp = quant_params->Get(cur_channel)->zeroPoint(); in UnSparseTensorData() local
95 un_sparsed_data.push_back(zp); in UnSparseTensorData()
114 auto zp = quant_params->Get(cur_channel)->zeroPoint(); in UnSparseTensorData() local
115 un_sparsed_data.push_back(static_cast<T>(zp)); in UnSparseTensorData()
/third_party/mindspore/mindspore/lite/tools/common/
Dgraph_util.h201 auto zp = quant_params[cur_channel]->zeroPoint; in SparsityCompress() local
203 if (nz_value != zp || (di - prev_index) >= (size_t)(1 << coor_best_bit)) { in SparsityCompress()
249 auto zp = quant_params[cur_channel]->zeroPoint; in CalCoorBestBit() local
250 if (quant_data[i] != zp || (i - prev_index) >= (size_t)(1 << bit)) { in CalCoorBestBit()

123