get_attr_str_list

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Obtains the attribute value of the string array with the specified name.

Prototype

1
get_attr_str_list(self, name: str) -> Tuple[int, List[str]]

Parameters

Parameter

Input/Output

Description

name

Input

Attribute name.

Returns

Return code and attribute value of the string array.

  • If this attribute exists, the first element in the returned tuple is FLOW_FUNC_SUCCESS, and the second element is the attribute value of the string array.
  • If the attribute does not exist, the tuple contains only the error code.

Exception Handling

None

Constraints

None