diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-07-15 18:51:13 -0600 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-07-15 18:51:13 -0600 |
commit | 3cab20ee117d39c74abd2a28f142529e379844b1 (patch) | |
tree | 309181bb03176fcc7f2afd12b29a84873d958dc2 /numpy/_array_api/_array_object.py | |
parent | 48df7af2089d1f7be8aee646a89d5423b9a9a6b1 (diff) | |
download | numpy-3cab20ee117d39c74abd2a28f142529e379844b1.tar.gz |
Make numpy._array_api.Array.device return "cpu"
Diffstat (limited to 'numpy/_array_api/_array_object.py')
-rw-r--r-- | numpy/_array_api/_array_object.py | 8 |
1 files changed, 1 insertions, 7 deletions
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 <numpy.ndarray.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: |