Skip to content

Commit 2b9759b

Browse files
Used dpt.eye instead of dpt.from_numpy(np.eye(...))
1 parent 6d7e598 commit 2b9759b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dpctl/tests/test_usm_ndarray_operators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import numpy as np
1817
import pytest
1918

2019
import dpctl.tensor as dpt
@@ -109,7 +108,7 @@ def test_int_ops(namespace):
109108

110109
@pytest.mark.parametrize("namespace", [None, Dummy()])
111110
def test_mat_ops(namespace):
112-
M = dpt.from_numpy(np.eye(3, 3, dtype="d"))
111+
M = dpt.eye(3, 3)
113112
M._set_namespace(namespace)
114113
assert M.__array_namespace__() is namespace
115114
M.__matmul__(M)

0 commit comments

Comments
 (0)