Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make stream a keyword-only argument in to_device
  • Loading branch information
ndgrigorian committed Jan 14, 2025
commit 19145cf5acdd4dc2783a306cbe63649eef03b833
4 changes: 2 additions & 2 deletions dpctl/tensor/_usmarray.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -981,8 +981,8 @@ cdef class usm_ndarray:
res.flags_ = _copy_writable(res.flags_, self.flags_)
return res

def to_device(self, target_device, stream=None):
""" to_device(target_device)
def to_device(self, target_device, /, *, stream=None):
""" to_device(target_device, /, *, stream=None)

Transfers this array to specified target device.

Expand Down