mindspore.runtime.reset_stream_limit

View Source On Gitee
mindspore.runtime.reset_stream_limit(stream)[source]

Reset selected stream limit.

Note

  • This interface will synchronize the operator issuance, which may affect performance.

  • Only support PyNative mode, Graph mode is not currently supported.

Parameters

stream (mindspore.runtime.Stream) – selected stream.

Supported Platforms:

Ascend

Examples

>>> import mindspore as ms
>>> s1 = ms.runtime.Stream()
>>> ms.runtime.reset_stream_limit(s1)