Make array interface str.
(data: np.ndarray)
| 512 | |
| 513 | |
| 514 | def array_interface(data: np.ndarray) -> bytes: |
| 515 | """Make array interface str.""" |
| 516 | interface = array_interface_dict(data) |
| 517 | interface_str = bytes(json.dumps(interface), "utf-8") |
| 518 | return interface_str |
| 519 | |
| 520 | |
| 521 | def check_cudf_meta(data: _CudaArrayLikeArg, field: str) -> None: |