Remove deprecated np.bool

`np.bool is bool` and will never be returned as a dtype of an
`np.ndarray`, so we don't need to handle it here.

```
>>> a = np.ndarray([1], dtype=bool)
>>> a.dtype.type is np.bool_
True
```

More info here:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
pull/1653/head
Sean Silva 2022-11-24 16:42:18 +00:00
parent bb259f918a
commit 5a488ff085
1 changed files with 0 additions and 1 deletions

View File

@ -24,7 +24,6 @@ from torch_mlir_e2e_test.linalg_on_tensors_backends.refbackend import (
)
NUMPY_TO_TORCH_DTYPE_DICT = {
np.bool: torch.bool,
np.bool_: torch.bool,
np.uint8: torch.uint8,
np.int8: torch.int8,