Skip to content

Commit 5f68dbe

Browse files
msaroufimleofang
andauthored
Update pytorch_example.py
Co-authored-by: Leo Fang <leo80042@gmail.com>
1 parent f840546 commit 5f68dbe

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

cuda_core/examples/pytorch_example.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ def __cuda_stream__(self):
4040
return (0, stream_id) # Return format required by CUDA Python
4141

4242

43-
# Create a wrapper for the PyTorch stream
44-
pt_stream_wrapper = PyTorchStreamWrapper(pt_stream)
45-
46-
# Initialize a CUDA Python Stream from the PyTorch stream
47-
s = Stream._init(obj=pt_stream_wrapper)
48-
print("Successfully created CUDA Python stream from PyTorch stream")
43+
s = PyTorchStreamWrapper(pt_stream)
4944

5045
# prepare program
5146
arch = "".join(f"{i}" for i in dev.compute_capability)

0 commit comments

Comments
 (0)