Home
last modified time | relevance | path

Searched refs:arg_idx (Results 1 – 25 of 32) sorted by relevance

12

/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dscale.cc216 int arg_idx = 0; in SetKernelArg() local
217 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in SetKernelArg()
223 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, scale) != CL_SUCCESS) { in SetKernelArg()
226 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, offset) != CL_SUCCESS) { in SetKernelArg()
234 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, scale) != CL_SUCCESS) { in SetKernelArg()
237 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, offset) != CL_SUCCESS) { in SetKernelArg()
243 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, static_cast<float>(scale)) != CL_SUCCESS) { in SetKernelArg()
246 … if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, static_cast<float>(offset)) != CL_SUCCESS) { in SetKernelArg()
257 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, scale) != CL_SUCCESS) { in SetKernelArg()
260 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, offset) != CL_SUCCESS) { in SetKernelArg()
[all …]
Dpooling2d.cc133 int arg_idx = 2; in SetGlobalConstArgs() local
134 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, input_shape) != CL_SUCCESS) { in SetGlobalConstArgs()
138 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, output_shape) != CL_SUCCESS) { in SetGlobalConstArgs()
142 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, stride) != CL_SUCCESS) { in SetGlobalConstArgs()
146 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, kernel_size) != CL_SUCCESS) { in SetGlobalConstArgs()
150 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, padding) != CL_SUCCESS) { in SetGlobalConstArgs()
163 int arg_idx = 2; in SetLocalConstArgs() local
164 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, size) != CL_SUCCESS) { in SetLocalConstArgs()
188 int arg_idx = 0; in Run() local
189 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
[all …]
Dspace_to_depth.cc80 int arg_idx = 2; in SetConstArgs() local
81 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, cl_in_shape) != CL_SUCCESS) { in SetConstArgs()
85 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, cl_out_shape) != CL_SUCCESS) { in SetConstArgs()
89 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, param->block_size_) != CL_SUCCESS) { in SetConstArgs()
95 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, co_size) != CL_SUCCESS) { in SetConstArgs()
101 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, ci_size) != CL_SUCCESS) { in SetConstArgs()
116 int arg_idx = 0; in Run() local
117 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
121 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_tensors_[0]->data()) != CL_SUCCESS) { in Run()
Dactivation.cc90 int arg_idx = 2; in SetConstArgs() local
92 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, image_size) != CL_SUCCESS) { in SetConstArgs()
97 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, alpha_) != CL_SUCCESS) { in SetConstArgs()
105 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, c4) != CL_SUCCESS) { in SetConstArgs()
109 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, last_c4) != CL_SUCCESS) { in SetConstArgs()
125 int arg_idx = 0; in Run() local
126 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
130 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_tensors_[0]->data()) != CL_SUCCESS) { in Run()
Done_hot.cc100 int arg_idx = 2; in SetConstArgs() local
101 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, cl_in_image2d_shape) != CL_SUCCESS) { in SetConstArgs()
105 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, cl_out_shape) != CL_SUCCESS) { in SetConstArgs()
109 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, depth_) != CL_SUCCESS) { in SetConstArgs()
113 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, on_value_) != CL_SUCCESS) { in SetConstArgs()
117 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, off_value_) != CL_SUCCESS) { in SetConstArgs()
121 …if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, static_cast<int>(out_shape_.C)) != CL_SUCCESS) { in SetConstArgs()
125 …if (ocl_runtime_->SetKernelArg(kernel_, arg_idx, static_cast<int>(param_->support_neg_index_)) != … in SetConstArgs()
Darithmetic.cc114 int arg_idx = 3; in SetConstArgs() local
128 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in0_shape) != CL_SUCCESS) { in SetConstArgs()
132 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in1_shape) != CL_SUCCESS) { in SetConstArgs()
136 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_shape) != CL_SUCCESS) { in SetConstArgs()
140 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, broadcastC_flag) != CL_SUCCESS) { in SetConstArgs()
146 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, output_shape) != CL_SUCCESS) { in SetConstArgs()
151 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, activation_min_) != CL_SUCCESS) { in SetConstArgs()
155 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, activation_max_) != CL_SUCCESS) { in SetConstArgs()
237 int arg_idx = 0; in Run() local
238 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, input_0_ptr) != CL_SUCCESS) { in Run()
[all …]
Dresize.cc108 int arg_idx = 2; in SetConstArgs() local
109 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_size) != CL_SUCCESS) { in SetConstArgs()
113 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_size) != CL_SUCCESS) { in SetConstArgs()
117 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, scale) != CL_SUCCESS) { in SetConstArgs()
133 int arg_idx = 0; in Run() local
134 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
138 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_tensors_[0]->data()) != CL_SUCCESS) { in Run()
Dprelu.cc110 int arg_idx = 3; in SetConstArgs() local
112 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_shape_) != CL_SUCCESS) { in SetConstArgs()
116 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, 2) != CL_SUCCESS) { in SetConstArgs()
172 int arg_idx = 0; in Run() local
173 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
177 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_tensors_[0]->data()) != CL_SUCCESS) { in Run()
182 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, weight_scalar_) != CL_SUCCESS) { in Run()
187 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, weight_vector_, true) != CL_SUCCESS) { in Run()
Dsoftmax.cc138 int arg_idx = 2; in SetConstArgs() local
143 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, mask) != CL_SUCCESS) { in SetConstArgs()
149 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx, input_shape) != CL_SUCCESS) { in SetConstArgs()
158 int arg_idx = 0; in Run() local
159 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
163 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_tensors_[0]->data()) != CL_SUCCESS) { in Run()
Dtranspose.cc130 int arg_idx = 2; in SetConstArgs() local
132 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, shape) != CL_SUCCESS) { in SetConstArgs()
142 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, de_perm_cl) != CL_SUCCESS) { in SetConstArgs()
149 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_shape_int4) != CL_SUCCESS) { in SetConstArgs()
176 int arg_idx = 0; in Run() local
177 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
181 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_tensors_[0]->data()) != CL_SUCCESS) { in Run()
Dfusion_eltwise.cc273 int arg_idx = 0; in SetConstArgs() local
282 …if (ocl_runtime_->SetKernelArg(kernel_, arg_idx, *(reinterpret_cast<cl_half *>(&value))) != CL_SUC… in SetConstArgs()
287 … if (ocl_runtime_->SetKernelArg(kernel_, arg_idx, scalar_weights_[scalar_idx++]) != CL_SUCCESS) { in SetConstArgs()
293 …if (ocl_runtime_->SetKernelArg(kernel_, arg_idx, buffer_weights_[buffer_idx++], true) != CL_SUCCES… in SetConstArgs()
299 arg_idx++; // for act input in SetConstArgs()
301 arg_idx++; // for output in SetConstArgs()
302 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx, output_shape) != CL_SUCCESS) { in SetConstArgs()
311 int arg_idx = 0; in Run() local
314 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx, in_tensor->data()) != CL_SUCCESS) { in Run()
319 arg_idx++; in Run()
[all …]
Dreduce.cc215 int arg_idx = 2; in SetConstArgs() local
216 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, size) != CL_SUCCESS) { in SetConstArgs()
221 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, GenC4Mask()) != CL_SUCCESS) { in SetConstArgs()
256 int arg_idx = 0; in Run() local
257 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in_tensors_[0]->data()) != CL_SUCCESS) { in Run()
261 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_tensors_[0]->data()) != CL_SUCCESS) { in Run()
Dreshape.cc62 int arg_idx = 2; in SetConstArgs() local
63 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, src_size) != CL_SUCCESS) { in SetConstArgs()
67 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, dst_size) != CL_SUCCESS) { in SetConstArgs()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/int8/
Darithmetic_int8.cc115 int arg_idx = 3; in SetConstArgs() local
129 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in0_shape) != CL_SUCCESS) { in SetConstArgs()
133 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, in1_shape) != CL_SUCCESS) { in SetConstArgs()
137 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, out_shape) != CL_SUCCESS) { in SetConstArgs()
141 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, broadcastC_flag) != CL_SUCCESS) { in SetConstArgs()
147 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, output_shape) != CL_SUCCESS) { in SetConstArgs()
152 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, activation_min_) != CL_SUCCESS) { in SetConstArgs()
156 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, activation_max_) != CL_SUCCESS) { in SetConstArgs()
170 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, scale) != CL_SUCCESS) { in SetConstArgs()
174 if (ocl_runtime_->SetKernelArg(kernel_, arg_idx++, zero_point) != CL_SUCCESS) { in SetConstArgs()
[all …]
/third_party/gettext/libtextstyle/gnulib-local/lib/glib/
Dgmacros.in.h86 #define G_GNUC_PRINTF( format_idx, arg_idx ) \
87 __attribute__((__format__ (__printf__, format_idx, arg_idx)))
88 #define G_GNUC_SCANF( format_idx, arg_idx ) \
89 __attribute__((__format__ (__scanf__, format_idx, arg_idx)))
90 #define G_GNUC_FORMAT( arg_idx ) \
91 __attribute__((__format_arg__ (arg_idx)))
101 #define G_GNUC_PRINTF( format_idx, arg_idx )
102 #define G_GNUC_SCANF( format_idx, arg_idx )
103 #define G_GNUC_FORMAT( arg_idx )
/third_party/gettext/libtextstyle/gnulib-local/lib/
Dglibconfig.in.h79 #define G_GNUC_PRINTF( format_idx, arg_idx ) \ argument
80 __attribute__((__format__ (__printf__, format_idx, arg_idx)))
81 #define G_GNUC_SCANF( format_idx, arg_idx ) \ argument
82 __attribute__((__format__ (__scanf__, format_idx, arg_idx)))
83 #define G_GNUC_FORMAT( arg_idx ) \ argument
84 __attribute__((__format_arg__ (arg_idx)))
94 #define G_GNUC_PRINTF( format_idx, arg_idx ) argument
95 #define G_GNUC_SCANF( format_idx, arg_idx ) argument
96 #define G_GNUC_FORMAT( arg_idx ) argument
/third_party/boost/libs/graph/example/
Dfr_layout.cpp96 for (int arg_idx = 1; arg_idx < argc; ++arg_idx) in main() local
98 std::string arg = argv[arg_idx]; in main()
101 ++arg_idx; in main()
102 if (arg_idx >= argc) in main()
107 iterations = lexical_cast< int >(argv[arg_idx]); in main()
/third_party/mindspore/mindspore/lite/examples/runtime_gpu_extend/src/
Dcustom_add_kernel_gpu.cc96 int arg_idx = 3; in Prepare() local
98 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx, output_shape) != kSuccess) { in Prepare()
99 std::cerr << "Set kernel arg" << arg_idx << "failed."; in Prepare()
117 int arg_idx = 0; in Execute() local
118 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, input_0_ptr) != kSuccess) { in Execute()
119 std::cerr << "Set kernel arg" << arg_idx - 1 << "failed."; in Execute()
122 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, input_1_ptr) != kSuccess) { in Execute()
123 std::cerr << "Set kernel arg" << arg_idx - 1 << "failed."; in Execute()
126 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, outputs_[0].MutableData()) != kSuccess) { in Execute()
127 std::cerr << "Set kernel arg" << arg_idx - 1 << "failed."; in Execute()
/third_party/glib/glib/
Dgmacros.h511 #define G_GNUC_PRINTF( format_idx, arg_idx ) \ argument
512 __attribute__((__format__ (gnu_printf, format_idx, arg_idx)))
513 #define G_GNUC_SCANF( format_idx, arg_idx ) \ argument
514 __attribute__((__format__ (gnu_scanf, format_idx, arg_idx)))
518 #define G_GNUC_PRINTF( format_idx, arg_idx ) \ argument
519 __attribute__((__format__ (__printf__, format_idx, arg_idx)))
520 #define G_GNUC_SCANF( format_idx, arg_idx ) \ argument
521 __attribute__((__format__ (__scanf__, format_idx, arg_idx)))
525 #define G_GNUC_FORMAT( arg_idx ) \ argument
526 __attribute__((__format_arg__ (arg_idx)))
[all …]
/third_party/mindspore/mindspore/ccsrc/frontend/operator/composite/
Dzip_operation.cc73 for (size_t arg_idx = 0; arg_idx < args_spec_list.size(); arg_idx++) { in GenerateFuncGraph() local
74 … std::vector<AnfNodePtr> tuple_get_item_nodes{NewValueNode(op), ret_graph->parameters()[arg_idx], in GenerateFuncGraph()
/third_party/mindspore/mindspore/lite/test/ut/src/registry/
Dregistry_gpu_custom_op_test.cc216 int arg_idx = 3; in Prepare() local
218 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx, output_shape) != kSuccess) { in Prepare()
219 std::cerr << "Set kernel arg" << arg_idx << "failed."; in Prepare()
237 int arg_idx = 0; in Execute() local
238 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, input_0_ptr) != kSuccess) { in Execute()
239 std::cerr << "Set kernel arg" << arg_idx - 1 << "failed."; in Execute()
242 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, input_1_ptr) != kSuccess) { in Execute()
243 std::cerr << "Set kernel arg" << arg_idx - 1 << "failed."; in Execute()
246 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, outputs_[0].MutableData()) != kSuccess) { in Execute()
247 std::cerr << "Set kernel arg" << arg_idx - 1 << "failed."; in Execute()
/third_party/mbedtls/tests/scripts/
Dgenerate_test_code.py466 arg_idx = 0
479 args_dispatch.append('*( (int *) params[%d] )' % arg_idx)
482 args_dispatch.append('(char *) params[%d]' % arg_idx)
486 pointer_initializer = '(uint8_t *) params[%d]' % arg_idx
487 len_initializer = '*( (uint32_t *) params[%d] )' % (arg_idx+1)
489 """ % (arg_idx, pointer_initializer, len_initializer)
491 args_dispatch.append('&data%d' % arg_idx)
492 arg_idx += 1
496 arg_idx += 1
/third_party/harfbuzz/src/
Dhb.hh251 #define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_… argument
253 #define HB_PRINTF_FUNC(format_idx, arg_idx) argument
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb.hh260 #define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_… argument
262 #define HB_PRINTF_FUNC(format_idx, arg_idx) argument
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb.hh245 #define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_… argument
249 #define HB_PRINTF_FUNC(format_idx, arg_idx) argument

12