I found torch.cuda.Stream()
is manually defined in some open source code.
self.input_stream = torch.cuda.Stream()
self.model_stream = torch.cuda.Stream()
self.output_stream = torch.cuda.Stream()
On torch page, it says
You normally do not need to create one explicitly: by default, each device uses its own “default” stream.
Trying to understand why they had to define this manually. From the quick google search, there are lots of to use cuda.Stream()
but no to use it.
