torch.cuda — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/cuda.htmlReturns whether PyTorch’s CUDA state has been initialized. set_device. Sets the current device. set_stream. Sets the current stream.This is a wrapper API to set the stream. set_sync_debug_mode. Sets the debug mode for cuda synchronizing operations. stream. Wrapper around the Context-manager StreamContext that selects a given stream. synchronize