コード例 #1
0
ファイル: test_shape.py プロジェクト: take-cheeze/cupy
 def test_reshape_empty_invalid(self, xp):
     a = testing.empty(xp)
     a = a.reshape(())
コード例 #2
0
ファイル: test_shape.py プロジェクト: take-cheeze/cupy
 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(())