mindspore.runtime.set_stream_limit
- mindspore.runtime.set_stream_limit(stream, cube_num=- 1, vector_num=- 1)[source]
Sets selected stream limit.
Note
Only support PyNative mode, Graph mode is not currently supported.
- Parameters
stream (
mindspore.runtime.Stream) – selected stream.cube_num (int, optional) – set cube num for stream. Default is
-1, indicating that it is not set.vector_num (int, optional) – set vector num for stream. Default is
-1, indicating that it is not set.
- Supported Platforms:
Ascend
Examples
>>> import mindspore as ms >>> s1 = ms.runtime.Stream() >>> ms.runtime.set_stream_limit(s1, 8, 8)