GetOutputAttr

Description

Obtains the attribute value of the operator output tensor based on the attribute name.

Prototype

graphStatus GetOutputAttr(const int32_t index, const char_t *name, AscendString &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, AscendString &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, int64_t &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, int64_t &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, int32_t &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, int32_t &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, uint32_t &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, uint32_t &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, bool &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, bool &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, float32_t &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, float32_t &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vector<AscendString> &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vector<AscendString> &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vector<int64_t> &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vector<int64_t> &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vector<int32_t> &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vector<int32_t> &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vector<uint32_t> &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vector<uint32_t> &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vector<bool> &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vector<bool> &attr_value) const

graphStatus GetOutputAttr(const int32_t index, const char_t *name, std::vector<float32_t> &attr_value) const

graphStatus GetOutputAttr(const char_t *dst_name, const char_t *name, std::vector<float32_t> &attr_value) const

Parameters

Parameter

Input/Output

Description

name

Input

Attribute name.

index

Input

Output index.

dst_name

Input

Output edge name.

attr_value

Output

Attribute value of type int64_t.

attr_value

Output

Attribute value of type int32_t.

attr_value

Output

Attribute value of type uint32_t.

attr_value

Output

Attribute value of type vector<int64_t>.

attr_value

Output

Attribute value of type vector<int32_t>.

attr_value

Output

Attribute value of type vector<uint32_t>.

attr_value

Output

Attribute value of the floating-point type.

attr_value

Output

Attribute value of the floating-point list type.

attr_value

Output

Attribute value of the Boolean type.

attr_value

Output

Attribute value of the Boolean list type.

attr_value

Output

Attribute value of the character string type.

attr_value

Output

Attribute value of the character string list type.

Returns

graphStatus type. GRAPH_SUCCESS if the corresponding attribute is found; otherwise, GRAPH_FAILED.

Exception Handling

None

Restrictions

None