获取该算子所有的已经设置的属性名称和属性类型,包含IR定义的普通属性和用户自定义属性。
数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。
1 2 | const std::map<std::string, std::string> GetAllAttrNamesAndTypes() const
graphStatus GetAllAttrNamesAndTypes(std::map<AscendString, AscendString> &attr_name_types) const
|
参数名 |
输入/输出 |
描述 |
---|---|---|
attr_name_types |
输出 |
所有的属性名称和属性类型。 |
graphStatus类型:GRAPH_SUCCESS,代表成功;GRAPH_FAILED,代表失败。
无。
无。