Make cuda array interface str.
(data: _CudaArrayLikeArg)
| 114 | |
| 115 | |
| 116 | def cuda_array_interface(data: _CudaArrayLikeArg) -> bytes: |
| 117 | """Make cuda array interface str.""" |
| 118 | interface = cuda_array_interface_dict(data) |
| 119 | interface_str = bytes(json.dumps(interface), "utf-8") |
| 120 | return interface_str |
| 121 | |
| 122 | |
| 123 | def from_array_interface(interface: ArrayInf, zero_copy: bool = False) -> NumpyOrCupy: |
no test coverage detected