Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 29, 2019
1 parent d1403d7 commit c283601
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/python/unittest/test_gluon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2735,13 +2735,12 @@ def __init__(self, **kwargs):
def forward(self, x):
return self.dense(x)

mx.set_np_shape(True)
z = mx.nd.zeros((2,2016))
print(z.shape)
foo = Foo()
foo.initialize()
print(foo(z).shape)
mx.set_np_shape(False)
with mx.np_shape(True):
z = mx.nd.zeros((2,2016))
print(z.shape)
foo = Foo()
foo.initialize()
print(foo(z).shape)

if __name__ == '__main__':
import nose
Expand Down

0 comments on commit c283601

Please sign in to comment.