You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ``stream`` is given, the copy operation should be enqueued on the provided ``stream``; otherwise, the copy operation should be enqueued on the default stream/queue. Whether the copy is performed synchronously or asynchronously is implementation-dependent. Accordingly, if synchronization is required to guarantee data safety, this must be clearly explained in a conforming library's documentation.
51
90
"""
52
-
ifisinstance(x, np.ndarray):
91
+
if_is_numpy_array(x):
53
92
ifstreamisnotNone:
54
93
raiseValueError("The stream argument to to_device() is not supported")
0 commit comments