评价此页

torch.mtia.stream#

torch.mtia.stream(stream)[source]#

包装选择给定流的上下文管理器 StreamContext。

参数

stream (Stream) – selected stream. This manager is a no-op if it’s None.

返回类型

StreamContext

注意

In eager mode stream is of type Stream class while in JIT it doesn’t support torch.mtia.stream