Function: get_stream_attribute
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the attribute value of a stream.
Prototype
- C Prototype
aclError aclrtGetStreamAttribute(aclrtStream stream, aclrtStreamAttr stmAttrType, aclrtStreamAttrValue *value)
- Python Function
1value, ret = acl.rt.get_stream_attribute(stream, stm_attr_type)
Parameter Description
Parameter |
Description |
|---|---|
stream |
Int, stream. Products differ in their support for default streams (setting this parameter to 0): Atlas A3 Training Series Product: supported Atlas A2 Training Series Product/Atlas 800I A2 Inference Product: supported Atlas 200/500 A2 Inference Product: not supported Atlas Inference Series Product: not supported Atlas Training Series Product: not supported |
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. |