GetStrAttrVal
函数功能
获取算子的字符串类型的属性值。
函数原型
bool GetStrAttrVal(const char *attr_name, ge::AscendString &val) const
参数说明
返回值说明
表示是否成功获取到该属性。
约束说明
无
调用示例
bool GetStrAttrVal(ExeResGenerationContext* context) {
std::string attr_name = "";
ge::AscendString val;
auto result = context->GetStrAttrVal(attr_name.c_str(),val);
// ...
}