Skip to content

Commit

Permalink
Make stream a keyword-only argument in to_device
Browse files Browse the repository at this point in the history
  • Loading branch information
ndgrigorian committed Jan 14, 2025
1 parent e0590e1 commit d2d4193
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d2d4193

Please sign in to comment.