From d2d4193eaee7ce4311f2154239704e8fdf8f2674 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Tue, 14 Jan 2025 11:29:11 -0800 Subject: [PATCH] Make `stream` a keyword-only argument in `to_device` --- dpctl/tensor/_usmarray.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpctl/tensor/_usmarray.pyx b/dpctl/tensor/_usmarray.pyx index f61651d4b3..a459d62038 100644 --- a/dpctl/tensor/_usmarray.pyx +++ b/dpctl/tensor/_usmarray.pyx @@ -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.