Home
last modified time | relevance | path

Searched refs:output_ptr (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/
DConvDwFp32Row_sse.c21 void ConvDwFp32Row(float *output_ptr, const float *input_ptr, const float *weight_ptr, size_t num_p… in ConvDwFp32Row() argument
31 __m128 dst1 = _mm_loadu_ps(output_ptr); in ConvDwFp32Row()
32 __m128 dst2 = _mm_loadu_ps(output_ptr + 4); in ConvDwFp32Row()
33 __m128 dst3 = _mm_loadu_ps(output_ptr + 8); in ConvDwFp32Row()
34 __m128 dst4 = _mm_loadu_ps(output_ptr + 12); in ConvDwFp32Row()
47 _mm_storeu_ps(output_ptr, dst1); in ConvDwFp32Row()
48 _mm_storeu_ps(output_ptr + 4, dst2); in ConvDwFp32Row()
49 _mm_storeu_ps(output_ptr + 8, dst3); in ConvDwFp32Row()
50 _mm_storeu_ps(output_ptr + 12, dst4); in ConvDwFp32Row()
51 output_ptr += 16; in ConvDwFp32Row()
[all …]
/third_party/flutter/skia/src/utils/
DSkFloatToDecimal.cpp90 char* output_ptr = &output[0]; in SkFloatToDecimal() local
107 *output_ptr++ = '0'; in SkFloatToDecimal()
108 *output_ptr = '\0'; in SkFloatToDecimal()
109 return static_cast<unsigned>(output_ptr - output); in SkFloatToDecimal()
112 *output_ptr++ = '-'; in SkFloatToDecimal()
151 *output_ptr++ = '0' + buffer[bufferIndex]; in SkFloatToDecimal()
154 *output_ptr++ = '0'; in SkFloatToDecimal()
161 *output_ptr++ = '0' + buffer[bufferIndex]; in SkFloatToDecimal()
163 *output_ptr++ = '.'; in SkFloatToDecimal()
165 *output_ptr++ = '.'; in SkFloatToDecimal()
[all …]
/third_party/skia/src/utils/
DSkFloatToDecimal.cpp90 char* output_ptr = &output[0]; in SkFloatToDecimal() local
107 *output_ptr++ = '0'; in SkFloatToDecimal()
108 *output_ptr = '\0'; in SkFloatToDecimal()
109 return static_cast<unsigned>(output_ptr - output); in SkFloatToDecimal()
112 *output_ptr++ = '-'; in SkFloatToDecimal()
151 *output_ptr++ = '0' + buffer[bufferIndex]; in SkFloatToDecimal()
154 *output_ptr++ = '0'; in SkFloatToDecimal()
161 *output_ptr++ = '0' + buffer[bufferIndex]; in SkFloatToDecimal()
163 *output_ptr++ = '.'; in SkFloatToDecimal()
165 *output_ptr++ = '.'; in SkFloatToDecimal()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/
Dms_simd_instructions.h176 #define STORE128X8_F32(output_ptr, num, dst) \ argument
177 MS_STQ_F32(output_ptr + 0 * num, dst##1); \
178 MS_STQ_F32(output_ptr + 1 * num, dst##2); \
179 MS_STQ_F32(output_ptr + 2 * num, dst##3); \
180 MS_STQ_F32(output_ptr + 3 * num, dst##4); \
181 MS_STQ_F32(output_ptr + 4 * num, dst##5); \
182 MS_STQ_F32(output_ptr + 5 * num, dst##6); \
183 MS_STQ_F32(output_ptr + 6 * num, dst##7); \
184 MS_STQ_F32(output_ptr + 7 * num, dst##8);
256 #define STORE256X8_F32(output_ptr, num, dst) \ argument
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dsoftmax.c39 static void SoftMaxP1Simple(const float *input_ptr, float *output_ptr, float *sum_data, int start, … in SoftMaxP1Simple() argument
48 ExpFp32Offset(input_ptr + inner_offset, output_ptr + inner_offset, max_data, length); in SoftMaxP1Simple()
52 _sum_data += output_ptr[axis_offset]; in SoftMaxP1Simple()
58 void SoftMaxP1(const float *input_ptr, float *output_ptr, float *sum_data, int start, int count, in… in SoftMaxP1() argument
61 SoftMaxP1Simple(input_ptr, output_ptr, sum_data, start, count, length); in SoftMaxP1()
76 output_ptr[axis_offset] = exp(input_ptr[axis_offset] - max_data); in SoftMaxP1()
81 _sum_data += output_ptr[axis_offset]; in SoftMaxP1()
88 void SoftMaxP2(const float *input_ptr, float *output_ptr, const float *sum_data, int start, int cou… in SoftMaxP2() argument
97 output_ptr[inner_offset] = output_ptr[inner_offset] / sum_data[k + sum_outter_offset]; in SoftMaxP2()
Dsoftmax_grad.c21 void SoftmaxGrad(const float *input_ptr, const float *yt_ptr, float *output_ptr, float *sum_data, f… in SoftmaxGrad() argument
40 memcpy(output_ptr, yt_ptr, (size_t)(ele_size) * sizeof(float)); in SoftmaxGrad()
51 sum_data[k] += output_ptr[offset] * input_ptr[offset]; in SoftmaxGrad()
57 *(output_ptr + outter_offset + k * N + j) += a * sum_data[j]; in SoftmaxGrad()
63 output_ptr[i] *= input_ptr[i]; in SoftmaxGrad()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dleaky_relu_int8.c20 int DoLeakReluInt8(const int8_t *inputs, int8_t *output_ptr, const LeakyReluQuantArg *quant_prelu_p… in DoLeakReluInt8() argument
36 output_ptr[j] = 127; in DoLeakReluInt8()
38 output_ptr[j] = -128; in DoLeakReluInt8()
40 output_ptr[j] = (int8_t)output_tmp; in DoLeakReluInt8()
45 output_ptr[j] = 127; in DoLeakReluInt8()
47 output_ptr[j] = -128; in DoLeakReluInt8()
49 output_ptr[j] = (int8_t)output_tmp; in DoLeakReluInt8()
Dpooling_int8.h31 int AvgPoolingInt8(const int8_t *input_ptr, int8_t *output_ptr, const PoolingParameter *pooling_par…
33 int AvgPoolingOptInt8(const int8_t *input_ptr, int8_t *output_ptr, const PoolingParameter *pooling_…
35 void MaxPoolingInt8(const int8_t *input_ptr, int8_t *output_ptr, PoolingParameter *pooling_param, i…
37 void MaxPoolingWithQuantInt8(const int8_t *input_ptr, int8_t *output_ptr, PoolingParameter *pooling…
39 void MaxPoolingOptInt8(const int8_t *input_ptr, int8_t *output_ptr, PoolingParameter *pooling_param…
Dreshape_int8.c21 void Int8Reshape(const int8_t *input_ptr, int8_t *output_ptr, int64_t real_dst_count, ReshapeQuantA… in Int8Reshape() argument
23 memcpy(output_ptr, input_ptr, real_dst_count); in Int8Reshape()
32 output_ptr[i] = para.output_activation_max_; in Int8Reshape()
34 output_ptr[i] = para.output_activation_min_; in Int8Reshape()
36 output_ptr[i] = (int8_t)output_tmp; in Int8Reshape()
Dsqueeze_int8.c19 void SqueezeInt8(const int8_t *input_ptr, int8_t *output_ptr, const SqueezeQuantArg *quant_Squeeze_… in SqueezeInt8() argument
32 output_ptr[j] = 127; in SqueezeInt8()
34 output_ptr[j] = -128; in SqueezeInt8()
36 output_ptr[j] = (int8_t)output_tmp; in SqueezeInt8()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dl2_norm_fp32.c30 int ThreadDivSqrtSum(const float *input_ptr, float *output_ptr, const L2NormParameter *param, const… in ThreadDivSqrtSum() argument
41 output_ptr[i] = MSMAX(0, tmp); in ThreadDivSqrtSum()
43 output_ptr[i] = MSMIN(6, MSMAX(0, tmp)); in ThreadDivSqrtSum()
45 output_ptr[i] = tmp; in ThreadDivSqrtSum()
51 int ThreadTrailingAxis(const float *input_ptr, float *output_ptr, const L2NormParameter *param, con… in ThreadTrailingAxis() argument
69 output_ptr[i * c + j] = MSMAX(0, tmp); in ThreadTrailingAxis()
71 output_ptr[i * c + j] = MSMIN(6, MSMAX(0, tmp)); in ThreadTrailingAxis()
73 output_ptr[i * c + j] = tmp; in ThreadTrailingAxis()
Drange_fp32.h34 inline void Range(float *output_ptr, float start, float delta, int nums) { in Range() argument
36 output_ptr[i] = start; in Range()
40 inline void RangeInt(int *output_ptr, int start, int delta, int nums) { in RangeInt() argument
42 output_ptr[i] = start; in RangeInt()
Done_hot_fp32.c34 float *output_ptr = output + i * depth * inner_size; in OneHotToFp32() local
38 *output_ptr = off_value; in OneHotToFp32()
44 *output_ptr = on_value; in OneHotToFp32()
46 output_ptr++; in OneHotToFp32()
Dlog_softmax_fp32.c46 void LogSoftmax(const float *input_ptr, float *output_ptr, float *sum_data, const SoftmaxParameter … in LogSoftmax() argument
72 output_ptr[axis_offset] = input_ptr[axis_offset] - max_data; in LogSoftmax()
73 sum_data[k + sum_outter_offset] += expf(output_ptr[axis_offset]); in LogSoftmax()
84 output_ptr[inner_offset] = output_ptr[inner_offset] - logf(sum_data[k + sum_outter_offset]); in LogSoftmax()
Dscatter_nd_fp32.c21 int DoScatterND(float *output_ptr, const float *update, int *output_unit_offsets, int unit_size, in… in DoScatterND() argument
22 …if (output_ptr == NULL || update == NULL || output_unit_offsets == NULL || unit_size <= 0 || num_u… in DoScatterND()
26 …(void)memcpy(output_ptr + output_unit_offsets[i], update + unit_size * i, (size_t)(unit_size) * si… in DoScatterND()
/third_party/curl/lib/
Dnon-ascii.c105 char *input_ptr, *output_ptr; in Curl_convert_to_network() local
124 input_ptr = output_ptr = buffer; in Curl_convert_to_network()
127 &output_ptr, &out_bytes); in Curl_convert_to_network()
171 char *input_ptr, *output_ptr; in Curl_convert_from_network() local
190 input_ptr = output_ptr = buffer; in Curl_convert_from_network()
193 &output_ptr, &out_bytes); in Curl_convert_from_network()
238 char *output_ptr; in Curl_convert_from_utf8() local
257 input_ptr = output_ptr = buffer; in Curl_convert_from_utf8()
260 &output_ptr, &out_bytes); in Curl_convert_from_utf8()
269 if(output_ptr < input_ptr) { in Curl_convert_from_utf8()
[all …]
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/
Darithmetic_grad_fp32_tests.cc219 float *output_ptr = reinterpret_cast<float *>(outputs[1]->MutableData()); in TEST_F() local
222 std::cout << output_ptr[i] << " ,"; in TEST_F()
230 EXPECT_EQ(0, CompareRelativeOutput(output_ptr, dx2_path)); in TEST_F()
263 float *output_ptr = reinterpret_cast<float *>(outputs[0]->MutableData()); in TEST_F() local
266 std::cout << output_ptr[i] << " ,"; in TEST_F()
274 EXPECT_EQ(0, CompareRelativeOutput(output_ptr, dx2_path)); in TEST_F()
309 float *output_ptr = reinterpret_cast<float *>(outputs[0]->MutableData()); in TEST_F() local
312 std::cout << output_ptr[i] << " ,"; in TEST_F()
320 EXPECT_EQ(0, CompareRelativeOutput(output_ptr, dx2_path)); in TEST_F()
356 float *output_ptr = reinterpret_cast<float *>(outputs[1]->MutableData()); in TEST_F() local
[all …]
/third_party/curl/src/
Dtool_convert.c52 char *input_ptr, *output_ptr; in convert_to_network() local
64 input_ptr = output_ptr = buffer; in convert_to_network()
67 &output_ptr, &out_bytes); in convert_to_network()
82 char *input_ptr, *output_ptr; in convert_from_network() local
94 input_ptr = output_ptr = buffer; in convert_from_network()
97 &output_ptr, &out_bytes); in convert_from_network()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dadaptive_avg_pool2d_grad_impl.cu33 T *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DGradKernel() local
37 output_ptr[i] = 0; in AdaptiveAvgPool2DGradKernel()
53 output_ptr[oh * output_width + ow] += delta; in AdaptiveAvgPool2DGradKernel()
67 float *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DGradKernel() local
71 output_ptr[i] = 0; in AdaptiveAvgPool2DGradKernel()
87 output_ptr[oh * output_width + ow] += delta; in AdaptiveAvgPool2DGradKernel()
101 half *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DGradKernel() local
105 output_ptr[i] = 0; in AdaptiveAvgPool2DGradKernel()
121 output_ptr[oh * output_width + ow] += delta; in AdaptiveAvgPool2DGradKernel()
135 double *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DGradKernel() local
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Dlog_softmax_fp32.cc91 auto output_ptr = reinterpret_cast<float *>(out_tensors_.at(kOutputIndex)->data()); in DoLogSoftmaxLastAxis() local
92 CHECK_NULL_RETURN(output_ptr); in DoLogSoftmaxLastAxis()
93 …LogSoftmaxLastAxis(input_ptr + offset, output_ptr + offset, tmp_data_ + offset, end - begin, chann… in DoLogSoftmaxLastAxis()
117 auto output_ptr = reinterpret_cast<float *>(out_tensors_.at(kOutputIndex)->data()); in Run() local
118 CHECK_NULL_RETURN(output_ptr); in Run()
120 LogSoftmax(input_ptr, output_ptr, tmp_data_, softmax_param_); in Run()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Done_hot_fp16.c33 float16_t *output_ptr = output + i * depth * inner_size; in OneHotToFp16() local
37 *output_ptr = off_value; in OneHotToFp16()
43 *output_ptr = on_value; in OneHotToFp16()
45 output_ptr++; in OneHotToFp16()
Dpooling_fp16.c20 int AvgPoolingFp16(const float16_t *input_ptr, float16_t *output_ptr, const PoolingParameter *pooli… in AvgPoolingFp16() argument
41 float16_t *dst_b_ptr = output_ptr + batch * output_h * output_w * channel; in AvgPoolingFp16()
138 void MaxPoolingC8Fp16(const float16_t *input_ptr, float16_t *output_ptr, const PoolingParameter *po… in MaxPoolingC8Fp16() argument
171 vst1q_f16(output_ptr + out_channel_offset, tmp_max); in MaxPoolingC8Fp16()
176 *(output_ptr + out_channel_offset + l) = tmp_max[l]; in MaxPoolingC8Fp16()
182 void MaxPoolingC4Fp16(const float16_t *input_ptr, float16_t *output_ptr, const PoolingParameter *po… in MaxPoolingC4Fp16() argument
218 vst1_f16(output_ptr + out_channel_offset, tmp_max); in MaxPoolingC4Fp16()
223 output_ptr[out_channel_offset + l] = tmp_max[l]; in MaxPoolingC4Fp16()
228 void MaxPoolingC1Fp16(const float16_t *input_ptr, float16_t *output_ptr, const PoolingParameter *po… in MaxPoolingC1Fp16() argument
249 output_ptr[out_channel_offset] = tmp_max; in MaxPoolingC1Fp16()
[all …]
Dlog_softmax_fp16.c48 void LogSoftmaxFp16(const float16_t *input_ptr, float16_t *output_ptr, float16_t *sum_data, in LogSoftmaxFp16() argument
75 output_ptr[axis_offset] = input_ptr[axis_offset] - max_data; in LogSoftmaxFp16()
76 sum_data[k + sum_outter_offset] += exp(output_ptr[axis_offset]); in LogSoftmaxFp16()
87 output_ptr[inner_offset] = output_ptr[inner_offset] - log(sum_data[k + sum_outter_offset]); in LogSoftmaxFp16()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dspace_to_batch_int8.cc33 auto output_ptr = reinterpret_cast<int8_t *>(output_tensor->data()); in Run() local
34 CHECK_NULL_RETURN(output_ptr); in Run()
44 DoSpaceToBatchPaddingNHWCInt8(input_ptr, output_ptr, param, quant_arg.zeroPoint); in Run()
46 …DoSpaceToBatchNHWCInt8(input_ptr, output_ptr, param->block_sizes_, param->input_shape_, param->out… in Run()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16_grad/
Dpooling_fp16_grad.cc79 auto output_ptr = reinterpret_cast<float16_t *>(out_tensors_.at(0)->data()); in DoExecute() local
80 CHECK_NULL_RETURN(output_ptr); in DoExecute()
87 …std::fill(output_ptr + task_id * stride * in_batch_size, output_ptr + ((task_id * stride) + count)… in DoExecute()
92 output_ptr + task_id * stride * in_batch_size, count, pool_param); in DoExecute()
95 …AvgPoolingFp16Grad(input_ptr + task_id * stride * out_batch_size, output_ptr + task_id * stride * … in DoExecute()

123456