GetAllAttrNamesAndTypes

Description

Obtains all configured attribute names and attribute types of an operator, including common attributes defined by IR and user-defined attributes.

Prototype

APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.

const std::map<std::string, std::string> GetAllAttrNamesAndTypes() const

graphStatus GetAllAttrNamesAndTypes(std::map<AscendString, AscendString> &attr_name_types) const

Parameters

Parameter

Input/Output

Description

attr_name_types

Output

All attribute names and types.

Returns

graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.

Exception Handling

None

Restrictions

None