Whether the numpy array has object dtype.
(data: DataType)
| 85 | |
| 86 | |
| 87 | def array_hasobject(data: DataType) -> bool: |
| 88 | """Whether the numpy array has object dtype.""" |
| 89 | return ( |
| 90 | hasattr(data, "dtype") |
| 91 | and hasattr(data.dtype, "hasobject") |
| 92 | and data.dtype.hasobject |
| 93 | ) |
| 94 | |
| 95 | |
| 96 | def cuda_array_interface_dict(data: _CudaArrayLikeArg) -> CudaArrayInf: |
no outgoing calls
no test coverage detected