diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py index 146836c28459..64897560435d 100644 --- a/tests/python/unittest/test_operator.py +++ b/tests/python/unittest/test_operator.py @@ -2530,7 +2530,8 @@ def test_flip(): @with_seed() def test_stn(): - np.set_printoptions(threshold=np.nan) + import sys + np.set_printoptions(threshold=sys.maxsize) num_filter = 2 # conv of loc net kernel = (3, 3) # conv of loc net num_hidden = 6 # fc of loc net