コード例 #1
0
ファイル: test_cuda.py プロジェクト: oga1971oga/chainer
 def test_ne(self):
     self.assertNotEqual(cuda.DummyDeviceType(), 1)
コード例 #2
0
ファイル: test_cuda.py プロジェクト: oga1971oga/chainer
 def test_eq(self):
     self.assertEqual(cuda.DummyDeviceType(), cuda.DummyDeviceType())
コード例 #3
0
ファイル: test_cuda.py プロジェクト: oga1971oga/chainer
 def test_int(self):
     self.assertEqual(int(cuda.DummyDeviceType()), -1)
コード例 #4
0
ファイル: test_cuda.py プロジェクト: ywatanabe0209/chainer
 def test_ne(self):
     assert cuda.DummyDeviceType() != 1
コード例 #5
0
ファイル: test_cuda.py プロジェクト: ywatanabe0209/chainer
 def test_eq(self):
     assert cuda.DummyDeviceType() == cuda.DummyDeviceType()
コード例 #6
0
ファイル: test_cuda.py プロジェクト: ywatanabe0209/chainer
 def test_int(self):
     assert int(cuda.DummyDeviceType()) == -1