Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 9ec3005

Browse files
committed
re-enabling manip test
1 parent 04e2ef9 commit 9ec3005

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/test_manip.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# import ddptensor as dt
1+
import ddptensor as dt
22

3-
# class TestManip:
4-
# def test_reshape(self):
5-
# a = dt.arange(0, 12*11, 1, dt.int64)
6-
# c = dt.reshape(a, [12, 11])
7-
# c = dt.reshape(a, [6, 22])
8-
# dt.sync()
9-
# for i in range(6):
10-
# for j in range(22):
11-
# assert int(c[i:i+1, j:j+1]) == i*22 + j
3+
class TestManip:
4+
def test_reshape(self):
5+
a = dt.arange(0, 12*11, 1, dt.int64)
6+
c = dt.reshape(a, [12, 11])
7+
c = dt.reshape(a, [6, 22])
8+
dt.sync()
9+
for i in range(6):
10+
for j in range(22):
11+
assert int(c[i:i+1, j:j+1]) == i*22 + j

0 commit comments

Comments
 (0)