From 7132764661b01e2f15a66d7c39d74ad4b2d434a9 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Tue, 2 Mar 2021 16:29:07 -0700 Subject: Remove _implementation from the array API functions As discussed at https://mail.python.org/pipermail/numpy-discussion/2021-February/081541.html, _implementation is not as useful for the array API module as previously thought. --- numpy/_array_api/_elementwise_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/_array_api/_elementwise_functions.py') diff --git a/numpy/_array_api/_elementwise_functions.py b/numpy/_array_api/_elementwise_functions.py index b48a38c3d..9efe17e83 100644 --- a/numpy/_array_api/_elementwise_functions.py +++ b/numpy/_array_api/_elementwise_functions.py @@ -482,7 +482,7 @@ def round(x: array, /) -> array: """ if x.dtype not in _numeric_dtypes: raise TypeError('Only numeric dtypes are allowed in round') - return ndarray._new(np.round._implementation(x._array)) + return ndarray._new(np.round(x._array)) def sign(x: array, /) -> array: """ -- cgit v1.2.1