Rate this Page

StreamContext#

classtorch.mtia.StreamContext(stream)[source]#

Context-manager that selects a given stream.

All MTIA kernels queued within its context will be enqueued on a selectedstream.

Parameters

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

Note

Streams are per-device.