MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / __init__

Method __init__

tests/cvcuda/python/test_stream.py:91–95  ·  view source on GitHub ↗
(self, cuda_stream=None)

Source from the content-addressed store, hash-verified

89
90class TorchStream:
91 def __init__(self, cuda_stream=None):
92 if cuda_stream:
93 self.m_stream = torch.cuda.ExternalStream(cuda_stream)
94 else:
95 self.m_stream = torch.cuda.Stream()
96
97 def cuda_stream(self):
98 return self.m_stream.cuda_stream

Callers

nothing calls this directly

Calls 2

ExternalStreamMethod · 0.80
StreamMethod · 0.45

Tested by

no test coverage detected