Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

torch.xpu.stream#

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

Wrap around the Context-manager StreamContext that selects a given stream.

Parameters:

stream (Stream) โ€“ selected stream. This manager is a no-op if itโ€™s None.

Return type:

StreamContext