Function: get_stream_attribute

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the attribute value of a stream.

Prototype

  • C Prototype
    aclError aclrtGetStreamAttribute(aclrtStream stream, aclrtStreamAttr stmAttrType, aclrtStreamAttrValue *value)
  • Python Function
    1
    value, ret = acl.rt.get_stream_attribute(stream, stm_attr_type)
    

Parameter Description

Parameter

Description

stream

Int, stream.

stm_attr_type

Int, attribute type. For details, see aclrtStreamAttr.

Return Value Description

Return Value

Description

value

Dict, attribute value. For details, see aclrtStreamAttrValue.

ret

Int, 0 on success; else, failure. For details, see aclError.