From 3cab20ee117d39c74abd2a28f142529e379844b1 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 15 Jul 2021 18:51:13 -0600 Subject: Make numpy._array_api.Array.device return "cpu" --- numpy/_array_api/_array_object.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'numpy/_array_api/_array_object.py') diff --git a/numpy/_array_api/_array_object.py b/numpy/_array_api/_array_object.py index 547143a4b..0659b7b05 100644 --- a/numpy/_array_api/_array_object.py +++ b/numpy/_array_api/_array_object.py @@ -845,13 +845,7 @@ class Array: @property def device(self) -> Device: - """ - Array API compatible wrapper for :py:meth:`np.ndaray.device `. - - See its docstring for more information. - """ - # Note: device support is required for this - raise NotImplementedError("The device attribute is not yet implemented") + return 'cpu' @property def ndim(self) -> int: -- cgit v1.2.1