/third_party/mindspore/mindspore/ |
D | _checkparam.py | 99 def _check_3d_int_or_tuple(arg_name, arg_value, prim_name, allow_five=False, ret_five=False, argument 115 if isinstance(arg_value, int): 116 … ret = (1, 1, arg_value, arg_value, arg_value) if ret_five else (arg_value, arg_value, arg_value) 117 elif len(arg_value) == 3: 118 ret = (1, 1, arg_value[0], arg_value[1], arg_value[2]) if ret_five else arg_value 119 elif len(arg_value) == 5: 122 ret = arg_value if ret_five else (arg_value[1], arg_value[2], arg_value[3]) 127 Validator.check_value_type(arg_name, arg_value, (int, tuple), prim_name) 128 if three_input and isinstance(arg_value, tuple): 129 if len(arg_value) != 3: [all …]
|
/third_party/mindspore/mindspore/ops/composite/ |
D | array_ops.py | 27 def _check_is_int(arg_value, arg_name, op_name): argument 28 arg_value = validator.check_is_int(arg_value, arg_name, op_name) 29 return arg_value 33 def _check_positive_int(arg_value, arg_name, op_name): argument 34 arg_value = validator.check_positive_int(arg_value, arg_name, op_name) 35 return arg_value 39 def _check_axis_range(arg_value, limit, arg_name, op_name): argument 40 arg_value = validator.check_int_range(arg_value, -limit, limit, Rel.INC_LEFT, arg_name, op_name) 41 return arg_value
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-boolean.c | 58 ecma_value_t arg_value; in ecma_builtin_boolean_dispatch_call() local 62 arg_value = ECMA_VALUE_UNDEFINED; in ecma_builtin_boolean_dispatch_call() 66 arg_value = arguments_list_p[0]; in ecma_builtin_boolean_dispatch_call() 69 return ecma_make_boolean_value (ecma_op_to_boolean (arg_value)); in ecma_builtin_boolean_dispatch_call()
|
/third_party/mindspore/mindspore/core/utils/ |
D | check_convert_utils.h | 155 …or<int64_t> CheckPositiveVector(const std::string &arg_name, const std::vector<int64_t> &arg_value, 157 static std::string CheckString(const std::string &arg_name, const std::string &arg_value, 161 …static int64_t CheckInteger(const std::string &arg_name, int64_t arg_value, CompareEnum compare_op… 165 …static T CheckValue(const std::string &arg_name, T arg_value, CompareEnum compare_operator, T matc… in CheckValue() argument 171 if (iter->second(arg_value, match_value)) { in CheckValue() 172 return arg_value; in CheckValue() 185 buffer << iter_to_string->second << match_value << " , but got " << arg_value << "."; in CheckValue() 190 static void CheckInRange(const std::string &arg_name, T arg_value, CompareRange compare_operator, in CheckInRange() argument 200 if (iter->second(arg_value, range)) { in CheckInRange() 215 …trng.first << range.first << "," << range.second << range_strng.second << " ,but got " << arg_value in CheckInRange() [all …]
|
D | check_convert_utils.cc | 310 … const std::vector<int64_t> &arg_value, in CheckPositiveVector() argument 315 if (std::any_of(arg_value.begin(), arg_value.end(), [](int64_t item) { return item < 0; })) { in CheckPositiveVector() 316 for (auto item : arg_value) { in CheckPositiveVector() 323 return arg_value; in CheckPositiveVector() 326 …string CheckAndConvertUtils::CheckString(const std::string &arg_name, const std::string &arg_value, in CheckString() argument 328 if (check_list.find(arg_value) != check_list.end()) { in CheckString() 329 return arg_value; in CheckString() 334 buffer << " must be \"" << (*check_list.begin()) << "\",but got \"" << arg_value << "\"."; in CheckString() 342 << ",but got \"" << arg_value << "\"" in CheckString() 347 int64_t CheckAndConvertUtils::CheckInteger(const std::string &arg_name, int64_t arg_value, CompareE… in CheckInteger() argument [all …]
|
/third_party/mindspore/mindspore/nn/layer/ |
D | pooling.py | 38 def _check_int_or_tuple(arg_name, arg_value): argument 39 validator.check_value_type(arg_name, arg_value, [int, tuple], self.cls_name) 42 if isinstance(arg_value, int): 43 if arg_value <= 0: 45 elif len(arg_value) == 2: 46 for item in arg_value: 52 return arg_value
|
/third_party/boost/libs/thread/test/ |
D | test_thread_launching.cpp | 180 int arg_value; member 184 arg_value(0) in X() 195 arg_value=i; in f1() 215 BOOST_CHECK_EQUAL(42,x.arg_value); in BOOST_AUTO_TEST_CASE()
|
/third_party/mindspore/mindspore/train/ |
D | _utils.py | 210 def check_value_type(arg_name, arg_value, valid_types): argument 216 if isinstance(arg_value, int) and isinstance(arg_value, bool) and bool not in valid_types: 219 if not isinstance(arg_value, valid_types):
|
/third_party/node/src/tracing/ |
D | trace_event.h | 601 uint64_t arg_value; in AddTraceEvent() local 602 SetTraceValue(std::forward<ARG1_TYPE>(arg1_val), &arg_type, &arg_value); in AddTraceEvent() 605 &arg1_name, &arg_type, &arg_value, flags); in AddTraceEvent() 643 uint64_t arg_value; in AddTraceEventWithTimestamp() local 644 SetTraceValue(std::forward<ARG1_TYPE>(arg1_val), &arg_type, &arg_value); in AddTraceEventWithTimestamp() 647 &arg1_name, &arg_type, &arg_value, flags, timestamp); in AddTraceEventWithTimestamp() 675 uint64_t arg_value; in AddMetadataEvent() local 676 SetTraceValue(std::forward<ARG1_TYPE>(arg1_val), &arg_type, &arg_value); in AddMetadataEvent() 678 category_group_enabled, name, num_args, &arg1_name, &arg_type, &arg_value, in AddMetadataEvent()
|
/third_party/mindspore/mindspore/ccsrc/frontend/operator/composite/ |
D | do_signature.cc | 175 auto arg_value = input_types[index]; in GetMaxDtype() local 176 if (arg_value->isa<TensorType>()) { in GetMaxDtype() 221 auto arg_value = input_types[i]; in DoAutoCast() local 222 (void)GetTensorOrScalarTypeInfo(arg_value, &arg_type_id); in DoAutoCast() 237 if ((arg_value->isa<TensorType>()) && arg_type_id == it->second) { in DoAutoCast()
|
/third_party/mindspore/mindspore/ccsrc/frontend/operator/ |
D | ops_front_infer_function.cc | 63 auto arg_value = args_spec_list[0]->BuildValue(); in CalcSlidePara() local 64 if (!arg_value->isa<Int64Imm>()) { in CalcSlidePara() 67 arg1 = GetValue<int64_t>(arg_value); in CalcSlidePara() 72 auto arg_value = args_spec_list[1]->BuildValue(); in CalcSlidePara() local 73 if (!arg_value->isa<Int64Imm>()) { in CalcSlidePara() 76 arg2 = GetValue<int64_t>(arg_value); in CalcSlidePara() 81 auto arg_value = args_spec_list[2]->BuildValue(); in CalcSlidePara() local 82 if (!arg_value->isa<Int64Imm>()) { in CalcSlidePara() 85 slide->step = GetValue<int64_t>(arg_value); in CalcSlidePara()
|
/third_party/mindspore/mindspore/offline_debug/ |
D | mi_validator_helpers.py | 84 user_filled_args = [ba.arguments.get(arg_value) for arg_value in params]
|
/third_party/mindspore/mindspore/train/summary/ |
D | summary_record.py | 177 …Validator.check_value_type(arg_name='raise_exception', arg_value=raise_exception, valid_types=bool) 323 Validator.check_value_type(arg_name='step', arg_value=step, valid_types=int) 324 …Validator.check_value_type(arg_name='train_network', arg_value=train_network, valid_types=[Cell, t…
|
/third_party/alsa-utils/topology/ |
D | pre-process-object.c | 1309 char *arg_value, *temp; in tplg_construct_object_name() local 1341 arg_value = tplg_snprintf("%ld", v); in tplg_construct_object_name() 1342 if (!arg_value) { in tplg_construct_object_name() 1355 arg_value = strdup(s); in tplg_construct_object_name() 1356 if (!arg_value) { in tplg_construct_object_name() 1370 temp = tplg_snprintf("%s.%s", new_name, arg_value); in tplg_construct_object_name() 1371 free(arg_value); in tplg_construct_object_name()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | validationCL.cpp | 1270 const void *arg_value) in ValidateSetKernelArg() argument 1285 if (arg_size == sizeof(cl_mem) && arg_value != nullptr) in ValidateSetKernelArg() 1293 const cl_mem image = *static_cast<const cl_mem *>(arg_value); in ValidateSetKernelArg() 1301 const cl_mem image = *static_cast<const cl_mem *>(arg_value); in ValidateSetKernelArg() 1309 const cl_mem image = *static_cast<const cl_mem *>(arg_value); in ValidateSetKernelArg() 1317 const cl_mem image = *static_cast<const cl_mem *>(arg_value); in ValidateSetKernelArg() 1326 const cl_mem image = *static_cast<const cl_mem *>(arg_value); in ValidateSetKernelArg() 1335 const cl_mem image = *static_cast<const cl_mem *>(arg_value); in ValidateSetKernelArg() 1346 if (!Sampler::IsValid(*static_cast<const cl_sampler *>(arg_value))) in ValidateSetKernelArg() 1355 const cl_command_queue queue = *static_cast<const cl_command_queue *>(arg_value); in ValidateSetKernelArg() [all …]
|
/third_party/opencl-headers/CL/ |
D | cl_ext_intel.h | 569 const void* arg_value); 575 const void* arg_value);
|
/third_party/mesa3d/include/CL/ |
D | cl_ext_intel.h | 569 const void* arg_value); 575 const void* arg_value);
|
/third_party/mesa3d/src/gallium/frontends/clover/api/ |
D | kernel.cpp | 378 const void *arg_value) try { in clSetKernelArgSVMPointer() argument 381 obj(d_kern).args().at(arg_index).set_svm(arg_value); in clSetKernelArgSVMPointer()
|
/third_party/mindspore/mindspore/ops/operations/ |
D | nn_ops.py | 33 def _check_positive_int_or_tuple(arg_name, arg_value, prim_name, allow_four=False, ret_four=False): argument 43 if isinstance(arg_value, int): 44 ret = (1, 1, arg_value, arg_value) if ret_four else (arg_value, arg_value) 45 elif len(arg_value) == 2: 46 ret = (1, 1, arg_value[0], arg_value[1]) if ret_four else arg_value 47 elif len(arg_value) == 4: 50 ret = arg_value if ret_four else (arg_value[2], arg_value[3]) 55 validator.check_value_type(arg_name, arg_value, (int, tuple), prim_name) 64 def _check_shape(arg_name, arg_value, prim_name): argument 73 validator.check_value_type(arg_name, arg_value, (list, tuple), prim_name) [all …]
|
/third_party/mindspore/mindspore/dataset/core/ |
D | validator_helpers.py | 449 user_filled_args = [ba.arguments.get(arg_value) for arg_value in params]
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/ |
D | prim_bprop_optimizer.cc | 352 auto &arg_value = op_args[i]; in ArgsToAbs() local 353 auto arg_abs = arg_value->ToAbstract(); in ArgsToAbs()
|
/third_party/skia/third_party/externals/angle2/include/CL/ |
D | cl_ext.h | 855 const void * arg_value) CL_API_SUFFIX__VERSION_1_2; 1463 const void* arg_value); 1469 const void* arg_value);
|
/third_party/mindspore/mindspore/explainer/explanation/_counterfactual/ |
D | hierarchical_occlusion.py | 775 def _check_iterable_type(arg_name, arg_value, container_type, elem_types): argument 777 check_value_type(arg_name, arg_value, container_type) 778 for elem in arg_value:
|
/third_party/skia/third_party/externals/angle2/src/libGLESv2/ |
D | entry_points_cl_autogen.cpp | 604 const void *arg_value) in clSetKernelArg() argument 609 (uintptr_t)kernel, arg_index, arg_size, (uintptr_t)arg_value); in clSetKernelArg() 611 ANGLE_CL_VALIDATE_ERROR(SetKernelArg, kernel, arg_index, arg_size, arg_value); in clSetKernelArg() 613 return SetKernelArg(kernel, arg_index, arg_size, arg_value); in clSetKernelArg() 2007 const void *arg_value) in clSetKernelArgSVMPointer() argument 2011 (uintptr_t)kernel, arg_index, (uintptr_t)arg_value); in clSetKernelArgSVMPointer() 2013 ANGLE_CL_VALIDATE_ERROR(SetKernelArgSVMPointer, kernel, arg_index, arg_value); in clSetKernelArgSVMPointer() 2015 return SetKernelArgSVMPointer(kernel, arg_index, arg_value); in clSetKernelArgSVMPointer()
|
/third_party/skia/third_party/externals/angle2/src/libOpenCL/ |
D | libOpenCL_autogen.cpp | 284 const void *arg_value) in clSetKernelArg() argument 286 return cl::GetDispatch().clSetKernelArg(kernel, arg_index, arg_size, arg_value); in clSetKernelArg() 961 const void *arg_value) in clSetKernelArgSVMPointer() argument 963 return cl::GetDispatch().clSetKernelArgSVMPointer(kernel, arg_index, arg_value); in clSetKernelArgSVMPointer()
|