Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c1b7a9

Browse files
committed
We don't need to handle stream_ptr == None
1 parent 06d4ab4 commit 5c1b7a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/cuda/core/experimental/_memoryview.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ cpdef StridedMemoryView view_as_cai(obj, stream_ptr, view=None):
353353
buf.ptr))
354354

355355
cdef intptr_t producer_s, consumer_s
356-
stream_ptr = int(stream_ptr) if stream_ptr is not None else -1
356+
stream_ptr = int(stream_ptr)
357357
if stream_ptr != -1:
358358
stream = cai_data.get("stream")
359359
if stream is not None:

0 commit comments

Comments
 (0)