get_attr_bool

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 bool type with the specified name.

Prototype

1
get_attr_bool(self, name: str) -> Tuple[int, bool]

Parameters

Parameter

Input/Output

Description

name

Input

Attribute name.

Returns

Return code and attribute value of the bool type.

  • 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 bool type.
  • If the attribute does not exist, the tuple contains only the error code.

Exception Handling

None

Constraints

None