From 5a488ff0851b0504206d91fbc578c3993376d4f4 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Thu, 24 Nov 2022 16:42:18 +0000 Subject: [PATCH] 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 --- python/torch_mlir_e2e_test/eager_backends/refbackend.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/torch_mlir_e2e_test/eager_backends/refbackend.py b/python/torch_mlir_e2e_test/eager_backends/refbackend.py index 3449ab655..70b9e5911 100644 --- a/python/torch_mlir_e2e_test/eager_backends/refbackend.py +++ b/python/torch_mlir_e2e_test/eager_backends/refbackend.py @@ -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,