Searched refs:attr_obj (Results 1 – 6 of 6) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_json/ |
D | tbe_json_creator.cc | 99 …rseAttrValue(const std::string &type, const mindspore::ValuePtr &value, nlohmann::json *attr_obj) { in ParseAttrValue() argument 100 MS_EXCEPTION_IF_NULL(attr_obj); in ParseAttrValue() 116 (*attr_obj)[kJDtype] = dtype_string->second; in ParseAttrValue() 120 … (*attr_obj)[kJValue] = value->isa<Int32Imm>() ? GetValue<int>(value) : GetValue<int64_t>(value); in ParseAttrValue() 123 (*attr_obj)[kJValue] = GetValue<int64_t>(value); in ParseAttrValue() 127 (*attr_obj)[kJValue] = attr_value == kOpFormat_FRAC_Z ? kJOpFormat_FRACTAL_Z : attr_value; in ParseAttrValue() 131 (*attr_obj)[kJValue] = GetValue<bool>(value); in ParseAttrValue() 134 (*attr_obj)[kJValue] = GetValue<float>(value); in ParseAttrValue() 142 (*attr_obj)[kJValue] = attr_value; in ParseAttrValue() 151 …(*attr_obj)[kJValue] = value_type->ToString() == kVTypeFloat ? std::vector<float>{GetValue<float>(… in ParseAttrValue() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/ |
D | tbe_adapter.cc | 215 nlohmann::json attr_obj; in MaxiOrMinimumGradAttrJsonPass() local 221 attr_obj["value"] = attr_value; in MaxiOrMinimumGradAttrJsonPass() 222 attr_obj["valid"] = true; in MaxiOrMinimumGradAttrJsonPass() 224 attr_obj["valid"] = false; in MaxiOrMinimumGradAttrJsonPass() 226 attr_obj["name"] = attr_name; in MaxiOrMinimumGradAttrJsonPass() 227 attrs_json->push_back(attr_obj); in MaxiOrMinimumGradAttrJsonPass() 248 nlohmann::json attr_obj; in CastAttrJsonPass() local 249 attr_obj["value"] = dst_type_value; in CastAttrJsonPass() 250 attr_obj["valid"] = true; in CastAttrJsonPass() 251 attr_obj["name"] = attr_name; in CastAttrJsonPass() [all …]
|
D | tbe_kernel_build.cc | 558 nlohmann::json attr_obj; in GenTbeAttrJson() local 559 attr_obj[kJName] = attr_name; in GenTbeAttrJson() 560 …if (op_name == parallel::LAYER_NORM && attr_obj[kJName] == "epsilon" && creater_type_ == OP_SELECT… in GenTbeAttrJson() 566 if (!ParseAttrValue(type, value, &attr_obj)) { in GenTbeAttrJson() 571 attr_obj[kJValid] = true; in GenTbeAttrJson() 576 ParseAttrDefaultValue(type, default_value, &attr_obj); in GenTbeAttrJson() 577 attr_obj[kJValid] = true; in GenTbeAttrJson() 581 attr_obj[kJValid] = false; in GenTbeAttrJson() 587 attr_obj[kJValid] = false; in GenTbeAttrJson() 592 (*attrs_json).push_back(attr_obj); in GenTbeAttrJson() [all …]
|
D | tbe_kernel_build.h | 112 …atic bool ParseAttrValue(const std::string &type, const ValuePtr &value, nlohmann::json *attr_obj); 113 …ParseAttrDefaultValue(const std::string &type, const std::string &value, nlohmann::json *attr_obj);
|
/third_party/openssl/apps/ |
D | pkcs12.c | 928 ASN1_OBJECT *attr_obj; in print_attribs() local 930 attr_obj = X509_ATTRIBUTE_get0_object(attr); in print_attribs() 931 attr_nid = OBJ_obj2nid(attr_obj); in print_attribs() 934 i2a_ASN1_OBJECT(out, attr_obj); in print_attribs()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/ |
D | parse.cc | 768 auto attr_obj = ast()->obj().attr(attr_name.c_str()); in ParseAttribute() local 771 (py::hasattr(attr_obj, PYTHON_PRIMITIVE_FLAG) || py::isinstance<py::int_>(attr_obj) || in ParseAttribute() 772 py::isinstance<py::float_>(attr_obj) || py::isinstance<py::bool_>(attr_obj) || in ParseAttribute() 773 py::isinstance<py::str>(attr_obj) || data_converter::IsCellInstance(attr_obj))) { in ParseAttribute()
|