예제 #1
0
 def test_reshape_empty_invalid(self, xp):
     a = testing.empty(xp)
     a = a.reshape(())
예제 #2
0
 def test_reshape_empty(self, xp):
     a = testing.empty(xp)
     return a.reshape((0, ))
예제 #3
0
파일: test_shape.py 프로젝트: zivzone/cupy
 def test_reshape_empty_invalid(self):
     for xp in (numpy, cupy):
         a = testing.empty(xp)
         with pytest.raises(ValueError):
             a.reshape(())