Skip to content

Commit 5ce3c70

Browse files
authored
Merge pull request #14 from Quansight-Labs/np_testing
port numpy testing
2 parents 2c3abde + 6c35cdc commit 5ce3c70

File tree

3 files changed

+2244
-1
lines changed

3 files changed

+2244
-1
lines changed

torch_np/testing/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from .utils import (assert_equal, assert_array_equal, assert_almost_equal,
2+
assert_warns, assert_)
3+
4+
from .testing import assert_allclose # FIXME
5+
6+

torch_np/testing.py renamed to torch_np/testing/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import torch
22

3-
from ._ndarray import asarray, asarray_replacer
3+
from .._ndarray import asarray_replacer, asarray
44
import torch_np as np
55

66
@asarray_replacer("two")

0 commit comments

Comments
 (0)