Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/core/utils/
Dcheck_convert_utils.cc150 auto attr_value_str = GetValue<std::string>(value); in GetDataFormatEnumValue() local
151 if (DataFormatToEnumMap.find(attr_value_str) == DataFormatToEnumMap.end()) { in GetDataFormatEnumValue()
152 MS_LOG(DEBUG) << "The data format " << attr_value_str << " not be converted to enum."; in GetDataFormatEnumValue()
155 *enum_value = DataFormatToEnumMap[attr_value_str]; in GetDataFormatEnumValue()
166 auto attr_value_str = GetValue<std::string>(value); in GetPadModEnumValue() local
172 if (pad_map.find(attr_value_str) == pad_map.end()) { in GetPadModEnumValue()
173 MS_LOG(EXCEPTION) << "Invalid pad mode " << attr_value_str << " use pad, valid or same"; in GetPadModEnumValue()
175 *enum_value = pad_map[attr_value_str]; in GetPadModEnumValue()
184 auto attr_value_str = GetValue<std::string>(value); in GetReductionEnumValue() local
187 if (pad_map.find(attr_value_str) == pad_map.end()) { in GetReductionEnumValue()
[all …]