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
- Object to be converted to an array. Can be a Python scalar, a (possibly nested) sequence of Python scalars, or an object supporting DLPack or the Python buffer protocol.
63
+
64
+
:::{tip}
65
+
An object supporting DLPack has `__dlpack__` and `__dlpack_device__` methods.
66
+
An object supporting the buffer protocol can be turned into a memoryview through `memoryview(obj)`.
67
+
:::
68
+
69
+
-**dtype**: _Optional\[<dtype>]_
70
+
71
+
- output array data type. If `dtype` is `None`, the output array data type must be inferred from the data type(s) in `obj`. Default: `None`.
72
+
73
+
-**device**: _Optional\[<device>]_
74
+
75
+
- device to place the created array on, if given. Default: `None`.
76
+
77
+
-**copy**: _bool_
78
+
79
+
- Whether or not to make a copy of the input. If `True`, always copies. If `False`, reuses existing memory buffer if possible. Default: `False`.
0 commit comments