Home
last modified time | relevance | path

Searched refs:in_data (Results 1 – 25 of 265) sorted by relevance

1234567891011

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/
Dtranspose_base.h27 int DoTransposeUInt8(const uint8_t *in_data, uint8_t *out_data, const int *output_shape,
29 int DoTransposeUInt16(const uint16_t *in_data, uint16_t *out_data, const int *output_shape,
31 int DoTransposeUInt32(const uint32_t *in_data, uint32_t *out_data, const int *output_shape,
33 int DoTransposeUInt64(const uint64_t *in_data, uint64_t *out_data, const int *output_shape,
35 int DoTransposeInt16(const int16_t *in_data, int16_t *out_data, const int *output_shape,
37 int DoTransposeInt32(const int32_t *in_data, int32_t *out_data, const int *output_shape,
39 int DoTransposeInt64(const int64_t *in_data, int64_t *out_data, const int *output_shape,
41 int DoTransposeBool(const bool *in_data, bool *out_data, const int *output_shape,
44 void TransposeDimsUInt8(const uint8_t *in_data, uint8_t *out_data, const int *output_shape,
46 void TransposeDimsUInt16(const uint16_t *in_data, uint16_t *out_data, const int *output_shape,
[all …]
Dtranspose_base.c21 …void TransposeDim2##NAME(const TYPE *in_data, TYPE *out_data, const int *strides, const int *out_s…
31 …out_data[out_stride0_i + j] = in_data[stride0_i + j * stride1]; …
37 …void TransposeDim3##NAME(const TYPE *in_data, TYPE *out_data, const int *strides, const int *out_s…
54 …out_data[out_stride0_i + out_stride1_j + k] = in_data[stride0_i + stride1_j + k * stride2]; \
61 …void TransposeDim4##NAME(const TYPE *in_data, TYPE *out_data, const int *strides, const int *out_s…
85in_data[stride0_i + stride1_j + stride2_k + m * stride3]; \
93 …void TransposeDim5##NAME(const TYPE *in_data, TYPE *out_data, const int *strides, const int *out_s…
123in_data[stride0_i + stride1_j + stride2_k + stride3_m + n * stride4]; \
132 …void TransposeDim6##NAME(const TYPE *in_data, TYPE *out_data, const int *strides, const int *out_s…
168in_data[stride0_i + stride1_j + stride2_k + stride3_m + stride4_n + g * stride5]; \
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dlocal_response_norm_fp32.c28 const float *in_data = input_ptr + i * channel; in LocalResponseNorm() local
36 const float in_val = in_data[k]; in LocalResponseNorm()
39 out_data[j] = in_data[j] * (float)(powf(sum * alpha + bias, -beta)); in LocalResponseNorm()
45 tmp_sum += in_data[j] * in_data[j]; in LocalResponseNorm()
47 out_data[depth_radius] = in_data[depth_radius] * (powf(tmp_sum * alpha + bias, -beta)); in LocalResponseNorm()
49 tmp_sum -= in_data[j - depth_radius - 1] * in_data[j - depth_radius - 1]; in LocalResponseNorm()
50 tmp_sum += in_data[j + depth_radius] * in_data[j + depth_radius]; in LocalResponseNorm()
51 out_data[j] = in_data[j] * (float)(powf(tmp_sum * alpha + bias, -beta)); in LocalResponseNorm()
60 const float in_val = in_data[k]; in LocalResponseNorm()
63 out_data[j] = in_data[j] * (float)(powf(sum * alpha + bias, -beta)); in LocalResponseNorm()
Dscale_fp32.c21 void ScaleInner(const float *in_data, float *out_data, const float *scale, const float *offset, int… in ScaleInner() argument
33 MS_FLOAT32X8 data = MS_LD256_F32(in_data + in_offset); in ScaleInner()
43 MS_FLOAT32X4 data = MS_LDQ_F32(in_data + in_offset); in ScaleInner()
50 out_data[in_offset] = in_data[in_offset] * scale[i] + offset[i]; in ScaleInner()
56 void ScaleAxis(const float *in_data, float *out_data, const float *scale, const float *offset, int … in ScaleAxis() argument
66 MS_FLOAT32X8 data = MS_LD256_F32(in_data + in_offset); in ScaleAxis()
76 MS_FLOAT32X4 data = MS_LDQ_F32(in_data + in_offset); in ScaleAxis()
83 out_data[in_offset] = in_data[in_offset] * scale[index] + offset[index]; in ScaleAxis()
88 void DoScale(const float *in_data, float *out_data, const float *scale, const float *offset, int ta… in DoScale() argument
98 ScaleAxis(in_data, out_data, scale, offset, outer_start, outer_end, scale_param->axis_size_); in DoScale()
[all …]
Dtranspose_fp32.c19 void TransposeDim2Fp32(const float *in_data, float *out_data, const int *strides, int *out_strides,… in TransposeDim2Fp32() argument
29 out_data[out_stride0_i + j] = in_data[stride0_i + j * stride1]; in TransposeDim2Fp32()
34 void TransposeDim3Fp32(const float *in_data, float *out_data, const int *strides, const int *out_st… in TransposeDim3Fp32() argument
51 out_data[out_stride0_i + out_stride1_j + k] = in_data[stride0_i + stride1_j + k * stride2]; in TransposeDim3Fp32()
57 void TransposeDim4Fp32(const float *in_data, float *out_data, const int *strides, const int *out_st… in TransposeDim4Fp32() argument
82 in_data[stride0_i + stride1_j + stride2_k + m * stride3]; in TransposeDim4Fp32()
89 void TransposeDim5Fp32(const float *in_data, float *out_data, const int *strides, const int *out_st… in TransposeDim5Fp32() argument
120 in_data[stride0_i + stride1_j + stride2_k + stride3_m + n * stride4]; in TransposeDim5Fp32()
128 void TransposeDim6Fp32(const float *in_data, float *out_data, const int *strides, const int *out_st… in TransposeDim6Fp32() argument
165 in_data[stride0_i + stride1_j + stride2_k + stride3_m + stride4_m + g * stride5]; in TransposeDim6Fp32()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dscale_fp16.c19 void Fp16ScaleInner(const float16_t *in_data, float16_t *out_data, const float16_t *scale, const fl… in Fp16ScaleInner() argument
29 float16x8_t data = vld1q_f16(in_data + in_offset); in Fp16ScaleInner()
39 out_data[in_offset] = in_data[in_offset] * scale[i] + offset[i]; in Fp16ScaleInner()
45 void Fp16ScaleAxis(const float16_t *in_data, float16_t *out_data, const float16_t *scale, const flo… in Fp16ScaleAxis() argument
53 float16x8_t data = vld1q_f16(in_data + in_offset); in Fp16ScaleAxis()
62 out_data[in_offset] = in_data[in_offset] * scale[index] + offset[index]; in Fp16ScaleAxis()
67 void DoScaleFp16(const float16_t *in_data, float16_t *out_data, const float16_t *scale, const float… in DoScaleFp16() argument
75 … Fp16ScaleAxis(in_data, out_data, scale, offset, outer_start, outer_end, scale_param->axis_size_); in DoScaleFp16()
77 … Fp16ScaleInner(in_data, out_data, scale, offset, outer_start, outer_end, scale_param->axis_size_, in DoScaleFp16()
82 void Fp16ScaleInnerRelu(const float16_t *in_data, float16_t *out_data, const float16_t *scale, cons… in Fp16ScaleInnerRelu() argument
[all …]
Dtranspose_fp16.c21 void Fp16TransposeDim2(const float16_t *in_data, float16_t *out_data, const int *strides, const int… in Fp16TransposeDim2() argument
31 out_data[out_stride0_i + j] = in_data[stride0_i + j * stride1]; in Fp16TransposeDim2()
36 void Fp16TransposeDim3(const float16_t *in_data, float16_t *out_data, const int *strides, const int… in Fp16TransposeDim3() argument
53 out_data[out_stride0_i + out_stride1_j + k] = in_data[stride0_i + stride1_j + k * stride2]; in Fp16TransposeDim3()
59 void Fp16TransposeDim4(const float16_t *in_data, float16_t *out_data, const int *strides, const int… in Fp16TransposeDim4() argument
84 in_data[stride0_i + stride1_j + stride2_k + m * stride3]; in Fp16TransposeDim4()
91 void Fp16TransposeDim5(const float16_t *in_data, float16_t *out_data, const int *strides, const int… in Fp16TransposeDim5() argument
122 in_data[stride0_i + stride1_j + stride2_k + stride3_m + n * stride4]; in Fp16TransposeDim5()
130 void Fp16TransposeDim6(const float16_t *in_data, float16_t *out_data, const int *strides, const int… in Fp16TransposeDim6() argument
167 in_data[stride0_i + stride1_j + stride2_k + stride3_m + stride4_n + g * stride5]; in Fp16TransposeDim6()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dreduce_int8.h26 int ReduceMeanN(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_ar…
27 int ReduceMeanH(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_ar…
28 int ReduceMeanW(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_ar…
29 int ReduceMeanC(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_ar…
30 int ReduceMeanNH(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_a…
31 int ReduceMeanNW(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_a…
32 int ReduceMeanNC(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_a…
33 int ReduceMeanHW(int n, int plane, int count, int c, int8_t *in_data, int8_t *out_data, QuantMulArg…
35 int ReduceMeanHC(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_a…
36 int ReduceMeanWC(int n, int h, int w, int c, int8_t *in_data, int8_t *out_data, QuantMulArg quant_a…
[all …]
Dtranspose_int8.c18 void TransposeDim2Int8(const int8_t *in_data, int8_t *out_data, const int *strides, const int *out_… in TransposeDim2Int8() argument
28 out_data[out_stride0_i + j] = in_data[stride0_i + j * stride1]; in TransposeDim2Int8()
34 void TransposeDim3Int8(const int8_t *in_data, int8_t *out_data, const int *strides, const int *out_… in TransposeDim3Int8() argument
51 out_data[out_stride0_i + out_stride1_j + k] = in_data[stride0_i + stride1_j + k * stride2]; in TransposeDim3Int8()
57 void TransposeDim4Int8(const int8_t *in_data, int8_t *out_data, const int *strides, const int *out_… in TransposeDim4Int8() argument
82 in_data[stride0_i + stride1_j + stride2_k + m * stride3]; in TransposeDim4Int8()
89 void TransposeDim5Int8(const int8_t *in_data, int8_t *out_data, const int *strides, const int *out_… in TransposeDim5Int8() argument
120 in_data[stride0_i + stride1_j + stride2_k + stride3_m + n * stride4]; in TransposeDim5Int8()
128 void TransposeDim6Int8(const int8_t *in_data, int8_t *out_data, const int *strides, const int *out_… in TransposeDim6Int8() argument
166 in_data[stride0_i + stride1_j + stride2_k + stride3_m + stride4_n + p * stride5]; in TransposeDim6Int8()
[all …]
/third_party/boost/libs/algorithm/test/
Dfind_backward_test.cpp37 int in_data[] = {1, 2, 3, 4, 5}; in check_constexpr_backward() local
40 const int* from = in_data; in check_constexpr_backward()
41 const int* to = in_data + 5; in check_constexpr_backward()
46 start = ba::find_backward(in_data, 1); // stops on first in check_constexpr_backward()
52 end = ba::find_backward(in_data, 6); // stops on the end in check_constexpr_backward()
56 res = (res && three == in_data + 2); in check_constexpr_backward()
58 three = ba::find_backward(in_data, 3); // stops on third element in check_constexpr_backward()
59 res = (res && three == in_data + 2); in check_constexpr_backward()
126 int in_data[] = {1, 2, 3, 4, 5}; in check_constexpr_if_backward() local
129 const int* from = in_data; in check_constexpr_if_backward()
[all …]
/third_party/vk-gl-cts/external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/terminate_invocation/
Dterminate_loop.amber9 ;layout(location = 1) in int in_data;
13 ; out_data = int(in_data);
17 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
19 OpDecorate %in_data Location 1
38 %in_data = OpVariable %ptr_int_input Input
48 OpCopyMemory %out_data %in_data
56 ;layout(location = 0) in flat int in_data;
61 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
63 ; for (int i = 0; i < 10; i += in_data)
71 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
[all …]
Dno_output_write.amber9 ;layout(location = 1) in int in_data;
13 ; out_data = int(in_data);
17 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
19 OpDecorate %in_data Location 1
38 %in_data = OpVariable %ptr_int_input Input
48 OpCopyMemory %out_data %in_data
56 ;layout(location = 0) in flat int in_data;
61 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
70 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
73 OpDecorate %in_data Location 0
[all …]
Dno_output_write_before_terminate.amber9 ;layout(location = 1) in int in_data;
13 ; out_data = int(in_data);
17 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
19 OpDecorate %in_data Location 1
38 %in_data = OpVariable %ptr_int_input Input
48 OpCopyMemory %out_data %in_data
56 ;layout(location = 0) in flat int in_data;
61 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
69 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
72 OpDecorate %in_data Location 0
[all …]
Dno_ssbo_atomic.amber10 ;layout(location = 1) in int in_data;
14 ; out_data = int(in_data);
18 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
20 OpDecorate %in_data Location 1
39 %in_data = OpVariable %ptr_int_input Input
49 OpCopyMemory %out_data %in_data
59 ;layout(location = 0) in flat int in_data;
66 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
76 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
79 OpDecorate %in_data Location 0
[all …]
Dno_ssbo_store.amber10 ;layout(location = 1) in int in_data;
14 ; out_data = int(in_data);
18 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
20 OpDecorate %in_data Location 1
39 %in_data = OpVariable %ptr_int_input Input
49 OpCopyMemory %out_data %in_data
59 ;layout(location = 0) in flat int in_data;
66 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
76 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
79 OpDecorate %in_data Location 0
[all …]
Dssbo_atomic_before_terminate.amber9 ;layout(location = 1) in int in_data;
13 ; out_data = int(in_data);
17 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
19 OpDecorate %in_data Location 1
38 %in_data = OpVariable %ptr_int_input Input
48 OpCopyMemory %out_data %in_data
58 ;layout(location = 0) in flat int in_data;
65 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
74 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
77 OpDecorate %in_data Location 0
[all …]
Dssbo_store_before_terminate.amber10 ;layout(location = 1) in int in_data;
14 ; out_data = int(in_data);
18 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
20 OpDecorate %in_data Location 1
39 %in_data = OpVariable %ptr_int_input Input
49 OpCopyMemory %out_data %in_data
59 ;layout(location = 0) in flat int in_data;
66 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
75 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
78 OpDecorate %in_data Location 0
[all …]
Dno_image_atomic.amber10 ;layout(location = 1) in int in_data;
14 ; out_data = int(in_data);
18 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
20 OpDecorate %in_data Location 1
39 %in_data = OpVariable %ptr_int_input Input
49 OpCopyMemory %out_data %in_data
59 ;layout(location = 0) in flat int in_data;
66 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
75 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
78 OpDecorate %in_data Location 0
[all …]
Dno_image_store.amber10 ;layout(location = 1) in int in_data;
14 ; out_data = int(in_data);
18 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
20 OpDecorate %in_data Location 1
39 %in_data = OpVariable %ptr_int_input Input
49 OpCopyMemory %out_data %in_data
59 ;layout(location = 0) in flat int in_data;
66 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
76 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data
79 OpDecorate %in_data Location 0
[all …]
Dsubgroup_vote.amber11 ;layout(location = 1) in int in_data;
15 ; out_data = int(in_data);
19 OpEntryPoint Vertex %main "main" %position %in_data %out_data %per_vertex
21 OpDecorate %in_data Location 1
40 %in_data = OpVariable %ptr_int_input Input
50 OpCopyMemory %out_data %in_data
59 ;layout(location = 0) in flat int in_data;
65 ; int combined = (x_coord & 0x1) + (y_coord & 0x1) + in_data;
77 OpEntryPoint Fragment %main "main" %frag_coord %in_data %out_data %subgroupID
80 OpDecorate %in_data Location 0
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dtls_internal.c474 const struct wpabuf *in_data, in tls_connection_handshake() argument
477 return tls_connection_handshake2(tls_ctx, conn, in_data, appl_data, in tls_connection_handshake()
484 const struct wpabuf *in_data, in tls_connection_handshake2() argument
498 in_data ? wpabuf_head(in_data) : NULL, in tls_connection_handshake2()
499 in_data ? wpabuf_len(in_data) : 0, in tls_connection_handshake2()
528 const struct wpabuf *in_data, in tls_connection_server_handshake() argument
542 res = tlsv1_server_handshake(conn->server, wpabuf_head(in_data), in tls_connection_server_handshake()
543 wpabuf_len(in_data), &res_len); in tls_connection_server_handshake()
563 const struct wpabuf *in_data) in tls_connection_encrypt() argument
569 buf = wpabuf_alloc(wpabuf_len(in_data) + 300); in tls_connection_encrypt()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dtls_internal.c474 const struct wpabuf *in_data, in tls_connection_handshake() argument
477 return tls_connection_handshake2(tls_ctx, conn, in_data, appl_data, in tls_connection_handshake()
484 const struct wpabuf *in_data, in tls_connection_handshake2() argument
498 in_data ? wpabuf_head(in_data) : NULL, in tls_connection_handshake2()
499 in_data ? wpabuf_len(in_data) : 0, in tls_connection_handshake2()
528 const struct wpabuf *in_data, in tls_connection_server_handshake() argument
542 res = tlsv1_server_handshake(conn->server, wpabuf_head(in_data), in tls_connection_server_handshake()
543 wpabuf_len(in_data), &res_len); in tls_connection_server_handshake()
563 const struct wpabuf *in_data) in tls_connection_encrypt() argument
569 buf = wpabuf_alloc(wpabuf_len(in_data) + 300); in tls_connection_encrypt()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShaderStorageBufferObjectTests.cpp1265 virtual const char* GetInput(std::vector<GLubyte>& in_data) = 0;
1279 std::vector<GLubyte> in_data; in Run() local
1280 const char* glsl_vs = GetInput(in_data); in Run()
1290 std::vector<GLubyte> out_data(in_data.size()); in Run()
1292 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)in_data.size(), &out_data[0], GL_STATIC_DRAW); in Run()
1296 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)in_data.size(), &in_data[0], GL_STATIC_DRAW); in Run()
1307 glGetBufferSubData(GL_SHADER_STORAGE_BUFFER, 0, (GLsizeiptr)in_data.size(), &out_data[0]); in Run()
1310 for (size_t i = 0; i < in_data.size(); ++i) in Run()
1312 if (in_data[i] != out_data[i]) in Run()
1316 … << tcu::toHex(out_data[i]) << " should be " << tcu::toHex(in_data[i]) << tcu::TestLog::EndMessage; in Run()
[all …]
Dgl4cES31CompatibilityShaderStorageBufferObjectTests.cpp1201 virtual const char* GetInput(std::vector<GLubyte>& in_data) = 0;
1215 std::vector<GLubyte> in_data; in Run() local
1216 const char* glsl_vs = GetInput(in_data); in Run()
1227 std::vector<GLubyte> out_d(in_data.size()); in Run()
1229 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)in_data.size(), &out_d[0], GL_STATIC_DRAW); in Run()
1232 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)in_data.size(), &in_data[0], GL_STATIC_DRAW); in Run()
1244 …(GLubyte*)glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, (GLsizeiptr)in_data.size(), GL_MAP_READ_BI… in Run()
1249 for (size_t i = 0; i < in_data.size(); ++i) in Run()
1251 if (in_data[i] != out_data[i]) in Run()
1255 … << tcu::toHex(out_data[i]) << " should be " << tcu::toHex(in_data[i]) << tcu::TestLog::EndMessage; in Run()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cShaderStorageBufferObjectTests.cpp1201 virtual const char* GetInput(std::vector<GLubyte>& in_data) = 0;
1215 std::vector<GLubyte> in_data; in Run() local
1216 const char* glsl_vs = GetInput(in_data); in Run()
1227 std::vector<GLubyte> out_d(in_data.size()); in Run()
1229 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)in_data.size(), &out_d[0], GL_STATIC_DRAW); in Run()
1232 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)in_data.size(), &in_data[0], GL_STATIC_DRAW); in Run()
1244 …(GLubyte*)glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, (GLsizeiptr)in_data.size(), GL_MAP_READ_BI… in Run()
1249 for (size_t i = 0; i < in_data.size(); ++i) in Run()
1251 if (in_data[i] != out_data[i]) in Run()
1255 … << tcu::toHex(out_data[i]) << " should be " << tcu::toHex(in_data[i]) << tcu::TestLog::EndMessage; in Run()
[all …]

1234567891011