コード例 #1
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_no_contiguous1(self):
     assert not internal.get_c_contiguity((3, 4, 3), (30, 6, 2), 2)
コード例 #2
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_normal4(self):
     assert internal.get_c_contiguity((), (), 4)
コード例 #3
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_normal5(self):
     assert internal.get_c_contiguity((3, 1), (4, 8), 4)
コード例 #4
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_normal2(self):
     assert internal.get_c_contiguity((3, 1, 3), (6, 100, 2), 2)
コード例 #5
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_normal3(self):
     assert internal.get_c_contiguity((3, ), (4, ), 4)
コード例 #6
0
 def test_normal1(self):
     self.assertTrue(internal.get_c_contiguity((3, 4, 3), (24, 6, 2), 2))
コード例 #7
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_normal1(self):
     assert internal.get_c_contiguity((3, 4, 3), (24, 6, 2), 2)
コード例 #8
0
ファイル: test_internal.py プロジェクト: owruby/chainer
 def test_zero_in_shape(self):
     self.assertTrue(internal.get_c_contiguity((1, 0, 1), (1, 1, 1), 3))
コード例 #9
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_zero_in_shape(self):
     assert internal.get_c_contiguity((1, 0, 1), (1, 1, 1), 3)
コード例 #10
0
 def test_no_contiguous1(self):
     self.assertFalse(internal.get_c_contiguity((3, 4, 3), (30, 6, 2), 2))
コード例 #11
0
 def test_no_contiguous3(self):
     self.assertFalse(internal.get_c_contiguity((3, 1, 3), (6, 6, 4), 2))
コード例 #12
0
 def test_normal5(self):
     self.assertTrue(internal.get_c_contiguity((3, 1), (4, 8), 4))
コード例 #13
0
 def test_normal4(self):
     self.assertTrue(internal.get_c_contiguity((), (), 4))
コード例 #14
0
 def test_normal2(self):
     self.assertTrue(internal.get_c_contiguity((3, 1, 3), (6, 100, 2), 2))
コード例 #15
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_no_contiguous2(self):
     assert not internal.get_c_contiguity((3, 1, 3), (24, 6, 2), 2)
コード例 #16
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_all_one_shape(self):
     assert internal.get_c_contiguity((1, 1, 1), (1, 1, 1), 3)
コード例 #17
0
ファイル: test_internal.py プロジェクト: thomasaarholt/cupy
 def test_no_contiguous3(self):
     assert not internal.get_c_contiguity((3, 1, 3), (6, 6, 4), 2)
コード例 #18
0
 def test_all_one_shape(self):
     self.assertTrue(internal.get_c_contiguity((1, 1, 1), (1, 1, 1), 3))