Function: get_stream_attribute
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains attribute values 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)
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. |
stm_attr_type |
Int, attribute type. For details, see aclrtStreamAttr. |
Return Values
Return Value |
Description |
|---|---|
value |
Dict, attribute value. For details, see aclrtStreamAttrValue. |
ret |
Int, 0 on success; else, failure. |