Function: reset_stream_res_limit

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

After the device resource limits of a specified stream are set by calling acl.rt.set_stream_res_limit, you can call this API to reset the device resource limits of the specified stream to the default setting. You can call acl.rt.get_stream_res_limit to query the default resource limits.

Prototype

  • C Prototype
    aclError aclrtResetStreamResLimit(aclrtStream stream)
  • Python Function
    1
    ret = acl.rt.reset_stream_res_limit(stream)
    

Parameter Description

Parameter

Description

stream

Int, specified stream. If 0 is passed, it indicates the default stream.

Return Value Description

Return Value

Description

ret

Int, 0 on success; else, failure.