Function: get_stream_attribute

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Obtains the stream attribute value.

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)
    

Parameters

Parameter

Description

stream

Int, stream.

The support for the default stream (that is, this parameter is set to 0) varies according to product models.

Atlas 350 Accelerator Card: not supported

Atlas A3 training product/Atlas A3 inference product: supported

Atlas A2 training product/Atlas A2 inference product: supported

Atlas 200I/500 A2 inference product: not supported

Atlas inference product: not supported

Atlas training product: not supported

stm_attr_type

Int, attribute type. For details, see aclrtStreamAttr.

Return Value

Return Value

Description

value

Dict, attribute value. For details, see aclrtStreamAttrValue.

ret

Int, 0 on success; else, failure.