Home
last modified time | relevance | path

Searched refs:attr_val (Results 1 – 13 of 13) sorted by relevance

/third_party/mindspore/mindspore/core/abstract/
Dparam_validator.cc191 int64_t attr_val = int64_value->value(); in CheckAttrPositiveInt64() local
192 if (attr_val <= 0) { in CheckAttrPositiveInt64()
193 …MS_LOG(EXCEPTION) << op << " invalid " << attr_name << " value: " << attr_val << ", should be grea… in CheckAttrPositiveInt64()
195 return attr_val; in CheckAttrPositiveInt64()
216 int64_t attr_val = int64_imm->value(); in CheckAttrIntOrTuple() local
217 (void)result.insert(result.begin(), num_element, attr_val); in CheckAttrIntOrTuple()
227 std::string attr_val = string_attr->value(); in CheckAttrStringSet() local
228 if (val_set.find(attr_val) == val_set.end()) { in CheckAttrStringSet()
241 …MS_LOG(EXCEPTION) << op << "Unsupported " << attr_name << ": " << attr_val << ". use " << buffer.s… in CheckAttrStringSet()
243 return attr_val; in CheckAttrStringSet()
/third_party/mindspore/mindspore/lite/tools/converter/acl/mapper/
Dbatchnorm_mapper.cc33 auto attr_val = src_prim->GetAttr(ops::kFmkType); in Mapper() local
34 int fmk_type = attr_val != nullptr ? GetValue<int>(attr_val) : converter::kFmkTypeTf; in Mapper()
Dstridedslice_mapper.cc34 auto attr_val = src_prim->GetAttr(ops::kFmkType); in Mapper() local
35 int fmk_type = attr_val != nullptr ? GetValue<int>(attr_val) : converter::kFmkTypeTf; in Mapper()
Dconv2d_transpose_fusion_mapper.cc33 auto attr_val = src_prim->GetAttr(ops::kFmkType); in Mapper() local
34 int fmk_type = attr_val != nullptr ? GetValue<int>(attr_val) : converter::kFmkTypeTf; in Mapper()
Dmaxpool_fusion_mapper.cc33 auto attr_val = src_prim->GetAttr(ops::kFmkType); in Mapper() local
34 int fmk_type = attr_val != nullptr ? GetValue<int>(attr_val) : converter::kFmkTypeTf; in Mapper()
Davgpool_fusion_mapper.cc33 auto attr_val = src_prim->GetAttr(ops::kFmkType); in Mapper() local
34 int fmk_type = attr_val != nullptr ? GetValue<int>(attr_val) : converter::kFmkTypeTf; in Mapper()
Dprimitive_mapper.cc170 auto attr_val = dst_prim->GetAttr(attr_name); in AddAttrToInput() local
171 if (attr_val == nullptr) { in AddAttrToInput()
179 auto value_data = opt::CastToVec2DInt(attr_val); in AddAttrToInput()
186 auto value_data = GetValue<float>(attr_val); in AddAttrToInput()
/third_party/libcoap/examples/
Dcoap-rd.c310 coap_str_const_t attr_val; in add_source_address() local
357 attr_val.s = (const uint8_t *)buf; in add_source_address()
358 attr_val.length = n; in add_source_address()
361 &attr_val, in add_source_address()
412 coap_str_const_t attr_val; in hnd_post_rd() local
486 attr_val.s = buf; in hnd_post_rd()
487 attr_val.length = ins.length + 2; in hnd_post_rd()
490 &attr_val, in hnd_post_rd()
503 attr_val.s = buf; in hnd_post_rd()
504 attr_val.length = rt.length + 2; in hnd_post_rd()
[all …]
/third_party/mindspore/mindspore/core/ops/
Dconv2d.cc50 int64_t attr_val = attr->cast<Int64ImmPtr>()->value(); in CheckAttrPositiveInt64() local
51 if (attr_val <= 0) { in CheckAttrPositiveInt64()
52 …MS_LOG(EXCEPTION) << op << " invalid " << attr_name << " value: " << attr_val << ", should be grea… in CheckAttrPositiveInt64()
54 return attr_val; in CheckAttrPositiveInt64()
66 int64_t attr_val = attr->cast<Int64ImmPtr>()->value(); in CheckAttrIntOrTuple() local
67 (void)result.insert(result.begin(), num_element, attr_val); in CheckAttrIntOrTuple()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/
Dvalidators.cc65 for (auto &attr_val : attr) { in ValidateVectorColorAttribute() local
66 RETURN_IF_NOT_OK(ValidateScalar(op_name, attr_name, attr_val, range, false, false)); in ValidateVectorColorAttribute()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/akg/
Dakg_kernel_json_generator.cc622 auto attr_val = fg->get_attr(FUNC_GRAPH_ATTR_GRAPH_KERNEL); in CollectFusedJson() local
624 if (attr_val != nullptr) { in CollectFusedJson()
625 auto fg_name = GetValue<std::string>(attr_val); in CollectFusedJson()
/third_party/ntfs-3g/include/ntfs-3g/
Dattrib.h284 } attr_val; typedef
/third_party/mindspore/mindspore/core/utils/
Dcheck_convert_utils.cc704 int64_t attr_val = attr->cast<Int64ImmPtr>()->value(); in CheckAttrIntOrTupleInt() local
705 result.push_back(attr_val); in CheckAttrIntOrTupleInt()