Home
last modified time | relevance | path

Searched refs:src_data (Results 1 – 25 of 108) sorted by relevance

12345

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dwinograd_utils_fp16.h29 typedef void (*InputTransFp16Func)(const float16_t *src_data, float16_t *dst_data, int src_step, in…
32 typedef void (*OutputTransFp16Func)(const float16_t *src_data, float16_t *dst_data, const float16_t…
36 src[0] = vld1q_f16(src_data + 0 * src_step); \
37 src[1] = vld1q_f16(src_data + 1 * src_step); \
38 src[2] = vld1q_f16(src_data + 2 * src_step); \
39 src[3] = vld1q_f16(src_data + 3 * src_step); \
40 src[4] = vld1q_f16(src_data + 4 * src_step); \
41 src[5] = vld1q_f16(src_data + 5 * src_step); \
42 src[6] = vld1q_f16(src_data + 6 * src_step); \
43 src[7] = vld1q_f16(src_data + 7 * src_step); \
[all …]
Dreduce_fp16.c21 int ReduceMeanFp16(int outer_size, int inner_size, int axis_size, const float16_t *src_data, float1… in ReduceMeanFp16() argument
23 if (src_data == NULL || dst_data == NULL) { in ReduceMeanFp16()
31 const float16_t *outer_src = src_data + j * axis_size * inner_size; in ReduceMeanFp16()
46 int ReduceMaxFp16(int outer_size, int inner_size, int axis_size, const float16_t *src_data, float16… in ReduceMaxFp16() argument
48 if (src_data == NULL || dst_data == NULL) { in ReduceMaxFp16()
53 const float16_t *outer_src = src_data + j * axis_size * inner_size; in ReduceMaxFp16()
68 int ReduceSumFp16(int outer_size, int inner_size, int axis_size, const float16_t *src_data, float16… in ReduceSumFp16() argument
79 src_data += start * src_stride; in ReduceSumFp16()
82 for (int i = 0; i < num; i++, src_data += src_stride, dst_data += inner_size) { in ReduceSumFp16()
86 const float16_t *inner_src = src_data + j; in ReduceSumFp16()
[all …]
Dreduce_fp16.h25 int ReduceMeanFp16(int outer_size, int inner_size, int axis_size, const float16_t *src_data, float1…
27 int ReduceMaxFp16(int outer_size, int inner_size, int axis_size, const float16_t *src_data, float16…
29 int ReduceSumFp16(int outer_size, int inner_size, int axis_size, const float16_t *src_data, float16…
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dwinograd_utils.h29 typedef void (*InputTransFunc)(const float *src_data, float *dst_data, int src_step, int dst_step, …
31 typedef void (*OutputTransFunc)(const float *src_data, float *dst_data, const float *bias_data, int…
35 src[0] = MS_LDQ_F32(src_data + 0 * src_step); \
36 src[1] = MS_LDQ_F32(src_data + 1 * src_step); \
37 src[2] = MS_LDQ_F32(src_data + 2 * src_step); \
38 src[3] = MS_LDQ_F32(src_data + 3 * src_step); \
39 src[4] = MS_LDQ_F32(src_data + 4 * src_step); \
40 src[5] = MS_LDQ_F32(src_data + 5 * src_step); \
41 src[6] = MS_LDQ_F32(src_data + 6 * src_step); \
42 src[7] = MS_LDQ_F32(src_data + 7 * src_step); \
[all …]
Dwinograd_avx.h26 typedef void (*OutputTransFunc)(const float *src_data, float *dst_data, const float *bias_data, int…
30 src[0] = MS_LD256_F32(src_data + 0 * src_step); \
31 src[1] = MS_LD256_F32(src_data + 1 * src_step); \
32 src[2] = MS_LD256_F32(src_data + 2 * src_step); \
33 src[3] = MS_LD256_F32(src_data + 3 * src_step); \
34 src[4] = MS_LD256_F32(src_data + 4 * src_step); \
35 src[5] = MS_LD256_F32(src_data + 5 * src_step); \
36 src[6] = MS_LD256_F32(src_data + 6 * src_step); \
37 src[7] = MS_LD256_F32(src_data + 7 * src_step); \
38 src[8] = MS_LD256_F32(src_data + 8 * src_step); \
[all …]
Dreduce_fp32.h25 int ReduceMean(int outer_size, int inner_size, int axis_size, const float *src_data, float *dst_dat…
27 int IntReduceMean(int outer_size, int inner_size, int axis_size, const int *src_data, int *dst_data…
29 int ReduceSum(int outer_size, int inner_size, int axis_size, const float *src_data, float *dst_data…
31 int IntReduceSum(int outer_size, int inner_size, int axis_size, const int *src_data, int *dst_data,…
33 int ReduceMax(int outer_size, int inner_size, int axis_size, const float *src_data, float *dst_data…
35 int IntReduceMax(int outer_size, int inner_size, int axis_size, const int *src_data, int *dst_data,…
37 int ReduceMin(int outer_size, int inner_size, int axis_size, const float *src_data, float *dst_data…
39 int IntReduceMin(int outer_size, int inner_size, int axis_size, const int *src_data, int *dst_data,…
41 int ReduceProd(int outer_size, int inner_size, int axis_size, const float *src_data, float *dst_dat…
43 int IntReduceProd(int outer_size, int inner_size, int axis_size, const int *src_data, int *dst_data…
[all …]
Dreduce_fp32.c26 int ReduceMean(int outer_size, int inner_size, int axis_size, const float *src_data, float *dst_dat… in ReduceMean() argument
28 if (src_data == NULL || dst_data == NULL) { in ReduceMean()
36 const float *outer_src = src_data + j * axis_size * inner_size; in ReduceMean()
51 int IntReduceMean(int outer_size, int inner_size, int axis_size, const int *src_data, int *dst_data… in IntReduceMean() argument
56 if (src_data == NULL || dst_data == NULL) { in IntReduceMean()
69 const int *outer_src = src_data + j * axis_size * inner_size; in IntReduceMean()
100 int ReduceSum(int outer_size, int inner_size, int axis_size, const float *src_data, float *dst_data… in ReduceSum() argument
102 if (src_data == NULL || dst_data == NULL) { in ReduceSum()
114 const float *outer_src = src_data + j * axis_size * inner_size; in ReduceSum()
141 int IntReduceSum(int outer_size, int inner_size, int axis_size, const int *src_data, int *dst_data,… in IntReduceSum() argument
[all …]
Dinstance_norm_fp32.h38 int InstanceNorm(const float *src_data, float *dst_data, const float *gamma_data, const float *beta…
40 int InstanceNormNC4HW4(const float *src_data, float *dst_data, const float *gamma_data, const float…
43 int InstanceNormNC8HW8(const float *src_data, float *dst_data, const float *gamma_data, const float…
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Dglbin.c50 struct src_data struct
57 _set_element_floating (GstElement * e, struct src_data *d /* static */ ) in _set_element_floating() argument
64 _set_element_full (GstElement * e, struct src_data *d /* static */ ) in _set_element_full()
73 struct src_data *d /* static */ ) in _set_element_floating_floating()
80 _set_element_floating_full (GstElement * e, struct src_data *d /* static */ ) in _set_element_floating_full()
87 _set_element_full_full (GstElement * e, struct src_data *d /* static */ ) in _set_element_full_full()
94 _set_element_full_floating (GstElement * e, struct src_data *d /* static */ ) in _set_element_full_floating()
132 struct src_data d = { "src", "gltestsrc" }; in GST_START_TEST()
140 struct src_data d = { "src", "gltestsrc" }; in GST_START_TEST()
148 struct src_data d = { "src", "gltestsrc" }; in GST_START_TEST()
[all …]
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dconvert_tensor_utils.cc115 auto src_data = static_cast<const float16 *>(src); in ConvertSameType() local
116 ConvertSameType(dst_data, src_data, size >> 1); in ConvertSameType()
119 auto src_data = static_cast<const float *>(src); in ConvertSameType() local
120 ConvertSameType(dst_data, src_data, size / sizeof(float)); in ConvertSameType()
123 auto src_data = static_cast<const double *>(src); in ConvertSameType() local
124 ConvertSameType(dst_data, src_data, size / sizeof(double)); in ConvertSameType()
127 auto src_data = static_cast<const int16_t *>(src); in ConvertSameType() local
128 ConvertSameType(dst_data, src_data, size >> 1); in ConvertSameType()
131 auto src_data = static_cast<const int *>(src); in ConvertSameType() local
132 ConvertSameType(dst_data, src_data, size / sizeof(int)); in ConvertSameType()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dreduce_int8.h43 …eMeanInt8(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
45 …nLastAxis(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
47 …ceSumInt8(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
49 …mLastAxis(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
51 …ceMaxInt8(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
53 …xLastAxis(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
55 …ceMinInt8(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
57 …nLastAxis(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
59 …dLastAxis(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
61 …eProdInt8(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data,
[all …]
Dreduce_int8.c176 …eMeanInt8(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data, in ReduceMeanInt8() argument
178 if (src_data == NULL || dst_data == NULL) { in ReduceMeanInt8()
183 const int32_t *outer_src = src_data + j * axis_size * inner_size; in ReduceMeanInt8()
210 …nLastAxis(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data, in ReduceMeanLastAxis() argument
212 if (src_data == NULL || dst_data == NULL) { in ReduceMeanLastAxis()
217 const int32_t *outer_src = src_data + j * axis_size * inner_size; in ReduceMeanLastAxis()
251 …ceSumInt8(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data, in ReduceSumInt8() argument
253 if (src_data == NULL || dst_data == NULL) { in ReduceSumInt8()
258 const int32_t *outer_src = src_data + j * axis_size * inner_size; in ReduceSumInt8()
283 …mLastAxis(const int outer_size, const int inner_size, const int axis_size, const int32_t *src_data, in ReduceSumLastAxis() argument
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/
Dtranspose.cl21 __kernel void transpose_0312_NHWC4(__read_only image2d_t src_data, __write_only image2d_t dst_data,…
30 FLT4 src0 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z * H4 + X, Y));
33 src1 = READ_IMAGE(src_data, smp_zero, (int2)((4 * Z + 1) * H4 + X, Y));
37 src2 = READ_IMAGE(src_data, smp_zero, (int2)((4 * Z + 2) * H4 + X, Y));
41 src3 = READ_IMAGE(src_data, smp_zero, (int2)((4 * Z + 3) * H4 + X, Y));
59 __kernel void transpose_0312_NC4HW4(__read_only image2d_t src_data, __write_only image2d_t dst_data…
66 FLT4 src0 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z, X * shape.z + Y));
69 src1 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z + 1, X * shape.z + Y));
73 src2 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z + 2, X * shape.z + Y));
77 src3 = READ_IMAGE(src_data, smp_zero, (int2)(4 * Z + 3, X * shape.z + Y));
[all …]
Dreduce.cl21 __kernel void GlobalHWMean(__read_only image2d_t src_data, __write_only image2d_t dst_data, int4 si…
29 result += convert_float4(READ_IMAGE(src_data, smp_zero, (int2)(w * size.z + X, h)));
36 __kernel void LocalHWMean(__read_only image2d_t src_data, __write_only image2d_t dst_data, int4 siz…
45 … temp[localy][localz] += convert_float4(READ_IMAGE(src_data, smp_zero, (int2)(w * size.z + X, h)));
63 __kernel void GlobalWCMean(__read_only image2d_t src_data, __write_only image2d_t dst_data, int4 si…
71 result += convert_float4(READ_IMAGE(src_data, smp_zero, (int2)(w * size.z + c, X)));
81 __kernel void LocalWCMean(__read_only image2d_t src_data, __write_only image2d_t dst_data, int4 siz…
90 … temp[localy][localz] += convert_float4(READ_IMAGE(src_data, smp_zero, (int2)(w * size.z + c, X)));
110 __kernel void GlobalHWSumSquare(__read_only image2d_t src_data, __write_only image2d_t dst_data, in…
118 FLT4 current = READ_IMAGE(src_data, smp_zero, (int2)(w * size.z + X, h));
[all …]
Dresize.cl20 __kernel void resize_nearest_neighbor_NHWC4(__read_only image2d_t src_data, __write_only image2d_t …
33 READ_IMAGE(src_data, smp_zero, (int2)(src_y * in_size.w + Z, N * in_size.y + src_x)));
36 __kernel void resize_nearest_neighbor_NC4HW4(__read_only image2d_t src_data, __write_only image2d_t…
47 READ_IMAGE(src_data, smp_zero, (int2)(src_y, Z * in_size.y + src_x)));
50 __kernel void resize_bilinear_NHWC4(__read_only image2d_t src_data, __write_only image2d_t dst_data…
66 FLT4 src0 = READ_IMAGE(src_data, smp_zero, (int2)(src_y * in_size.w + Z, N * in_size.y + src_x));
67 …FLT4 src1 = READ_IMAGE(src_data, smp_zero, (int2)(src_y_1 * in_size.w + Z, N * in_size.y + src_x));
68 …FLT4 src2 = READ_IMAGE(src_data, smp_zero, (int2)(src_y * in_size.w + Z, N * in_size.y + src_x_1));
69 …FLT4 src3 = READ_IMAGE(src_data, smp_zero, (int2)(src_y_1 * in_size.w + Z, N * in_size.y + src_x_1…
75 __kernel void resize_bilinear_NC4HW4(__read_only image2d_t src_data, __write_only image2d_t dst_dat…
[all …]
Ddepthwise_conv2d.cl18 …nel void DepthwiseConv2d_IMG_NHWC4(__write_only image2d_t dst_data, __read_only image2d_t src_data,
39 …FLT4 src_p = READ_IMAGE(src_data, smp_zero, (int2)(Z + x_c * src_size.z, y_c + batch * src_size.y)…
51 …void DepthwiseConv2d_IMG_NHWC4_1x1(__write_only image2d_t dst_data, __read_only image2d_t src_data,
72 …FLT4 src_p = READ_IMAGE(src_data, smp_zero, (int2)(Z + x_c * src_size.z, y_c + batch * src_size.y)…
82 …id DepthwiseConv2d_FIWI_NHWC4_b222(__write_only image2d_t dst_data, __read_only image2d_t src_data,
116 … FLT4 src_p00_c0 = READ_IMAGE(src_data, smp_zero, (int2)(Z * x_sign + x_c * src_size.z, y_c));
118 …READ_IMAGE(src_data, smp_zero, (int2)((Z + 1) * x_sign + x_c * src_size.z, y_c + batch * src_size.…
123 …FLT4 src_p01_c0 = READ_IMAGE(src_data, smp_zero, (int2)(Z * x_a1_sign + x_c_a1 * src_size.z, y_c));
125 …READ_IMAGE(src_data, smp_zero, (int2)((Z + 1) * x_a1_sign + x_c_a1 * src_size.z, y_c + batch * src…
130 FLT4 src_p10_c0 = READ_IMAGE(src_data, smp_zero, (int2)(Z + x_c * src_size.z, y_c_a1));
[all …]
Dgather.cl19 __kernel void gather(__write_only image2d_t dst_data, __read_only image2d_t src_data, __global int …
31 …res_data = READ_IMAGE(src_data, smp_zero, (int2)(X * src_size.z + Z, indices[batch] * src_size.y +…
33 …res_data = READ_IMAGE(src_data, smp_zero, (int2)(X * src_size.z + Z, batch * src_size.y + indices[…
35 …res_data = READ_IMAGE(src_data, smp_zero, (int2)(indices[X] * src_size.z + Z, batch * src_size.y +…
42 …rd_data = READ_IMAGE(src_data, smp_zero, (int2)(X * src_size.z + offset[i], batch * src_size.y + h…
44 …rd_data = READ_IMAGE(src_data, smp_zero, (int2)(X * src_size.z + offset[i], batch * src_size.y + h…
Dspace_to_depth.cl22 __kernel void SpaceToDepth(__read_only image2d_t src_data, __write_only image2d_t dst_data, int4 in…
41 FLT4 tmp = READ_IMAGE(src_data, smp_zero, (int2)(wi * in_shape.w + ci4, N * in_shape.y + hi));
56 __kernel void SpaceToDepthAlign(__read_only image2d_t src_data, __write_only image2d_t dst_data, in…
72 READ_IMAGE(src_data, smp_zero, (int2)(wi * in_shape.w + ci, ni * in_shape.y + hi)));
75 __kernel void DepthToSpace(__read_only image2d_t src_data, __write_only image2d_t dst_data, int4 in…
95 FLT4 tmp = READ_IMAGE(src_data, smp_zero, (int2)(wi * in_shape.w + ci4, N * in_shape.y + hi));
110 __kernel void DepthToSpaceAlign(__read_only image2d_t src_data, __write_only image2d_t dst_data, in…
126 READ_IMAGE(src_data, smp_zero, (int2)(wi * in_shape.w + ci, ni * in_shape.y + hi)));
Done_hot.cl31 __kernel void OneHotAxis0(__read_only image2d_t src_data, __write_only image2d_t dst_data, int2 in_…
40 …int4 indices = READ_IMAGE(src_data, smp_zero, (int2)(in_index % in_image2d_shape.x, in_index / in_…
63 __kernel void OneHotAxis1(__read_only image2d_t src_data, __write_only image2d_t dst_data, int2 in_…
72 …int4 indices = READ_IMAGE(src_data, smp_zero, (int2)(in_index % in_image2d_shape.x, in_index / in_…
95 __kernel void OneHotAxis2(__read_only image2d_t src_data, __write_only image2d_t dst_data, int2 in_…
104 …int4 indices = READ_IMAGE(src_data, smp_zero, (int2)(in_index % in_image2d_shape.x, in_index / in_…
127 __kernel void OneHotAxis3(__read_only image2d_t src_data, __write_only image2d_t dst_data, int2 in_…
139 …READ_IMAGE(src_data, smp_zero, (int2)(in_index_c4 % in_image2d_shape.x, in_index_c4 / in_image2d_s…
161 __kernel void OneHot2DAxis3(__read_only image2d_t src_data, __write_only image2d_t dst_data, int2 i…
168 int4 indices = READ_IMAGE(src_data, smp_zero, (int2)(Z / C4NUM, 0));
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dfill.cc38 auto src_data = out_tensors_[0]->data(); in RunFill() local
39 CHECK_NULL_RETURN(src_data); in RunFill()
40 if (allocator_->GetImageSize(src_data, &img_size) != RET_OK) { in RunFill()
46 cl::Image2D *out_image = allocator_->GetImage(src_data); in RunFill()
58 auto src_data = out_tensors_[0]->data(); in RunShape() local
59 CHECK_NULL_RETURN(src_data); in RunShape()
69 cl::Image2D *out_image = allocator_->GetImage(src_data); in RunShape()
Dfullconnection.cc155 …void *src_data = stored_weight_ == nullptr ? in_tensors_.at(kWeightIndex)->data() : stored_weight_; in InitFilter() local
156 MS_ASSERT(src_data); in InitFilter()
157 auto originWeightFp32 = reinterpret_cast<float *>(src_data); in InitFilter()
158 auto originWeightFp16 = reinterpret_cast<float16_t *>(src_data); in InitFilter()
231 void *src_data = stored_bias_ == nullptr ? in_tensors_.at(kBiasIndex)->data() : stored_bias_; in InitBias() local
232 MS_ASSERT(src_data); in InitBias()
235 reinterpret_cast<float16_t *>(bias_)[i] = reinterpret_cast<float *>(src_data)[i]; in InitBias()
239 reinterpret_cast<float *>(bias_)[i] = reinterpret_cast<float16_t *>(src_data)[i]; in InitBias()
242 memcpy(bias_, src_data, CO_ * dtype_size); in InitBias()
/third_party/ffmpeg/doc/examples/
Dresampling_audio.c85 uint8_t **src_data = NULL, **dst_data = NULL; in main() local
140 ret = av_samples_alloc_array_and_samples(&src_data, &src_linesize, src_nb_channels, in main()
165 fill_samples((double *)src_data[0], src_nb_samples, src_nb_channels, src_rate, &t); in main()
180 … ret = swr_convert(swr_ctx, dst_data, dst_nb_samples, (const uint8_t **)src_data, src_nb_samples); in main()
204 if (src_data) in main()
205 av_freep(&src_data[0]); in main()
206 av_freep(&src_data); in main()
Dscaling_video.c54 uint8_t *src_data[4], *dst_data[4]; in main() local
104 if ((ret = av_image_alloc(src_data, src_linesize, in main()
120 fill_yuv_image(src_data, src_linesize, src_w, src_h, i); in main()
123 sws_scale(sws_ctx, (const uint8_t * const*)src_data, in main()
136 av_freep(&src_data[0]); in main()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/
Dfp16_op_handler.h33 auto src_data = reinterpret_cast<const float *>(input); in Float32ToFloat16_fp16_handler() local
36 dst_data[i] = Float32ToShort(src_data[i]); in Float32ToFloat16_fp16_handler()
49 auto src_data = reinterpret_cast<const uint16_t *>(input); in Float16ToFloat32_fp16_handler() local
52 dst_data[i] = ShortToFloat32(src_data[i]); in Float16ToFloat32_fp16_handler()
/third_party/ffmpeg/libavfilter/
Dvf_removelogo.c220 uint8_t *src_data[4], *gray_data[4]; in load_mask() local
224 if ((ret = ff_load_image(src_data, src_linesize, w, h, &pix_fmt, filename, log_ctx)) < 0) in load_mask()
229 src_data, src_linesize, *w, *h, pix_fmt, in load_mask()
240 av_freep(&src_data[0]); in load_mask()
256 static void generate_half_size_image(const uint8_t *src_data, int src_linesize, in generate_half_size_image() argument
270 src_data[((y << 1) * src_linesize) + (x << 1)] || in generate_half_size_image()
271 src_data[((y << 1) * src_linesize) + (x << 1) + 1] || in generate_half_size_image()
272 src_data[(((y << 1) + 1) * src_linesize) + (x << 1)] || in generate_half_size_image()
273 src_data[(((y << 1) + 1) * src_linesize) + (x << 1) + 1]; in generate_half_size_image()
462 const uint8_t *src_data, int src_linesize, in blur_image() argument
[all …]

12345