提交 1e14ed2c authored 作者: Frederic's avatar Frederic

[TEST] fix new test with cuda.

上级 8a40a29e
...@@ -3291,6 +3291,10 @@ class T_Join_and_Split(unittest.TestCase): ...@@ -3291,6 +3291,10 @@ class T_Join_and_Split(unittest.TestCase):
eps=1.0e-4, rel_tol=1.0e-3, mode=self.mode) eps=1.0e-4, rel_tol=1.0e-3, mode=self.mode)
def test_join_matrix_dtypes(self): def test_join_matrix_dtypes(self):
if "float32" in self.shared.__name__:
raise SkipTest(
"The shared variable constructor"
" need to support other dtype then float32")
# Test mixed dtype. There was a bug that caused crash in the past. # Test mixed dtype. There was a bug that caused crash in the past.
av = numpy.array([[1, 2, 3], [4, 5, 6]], dtype='int8') av = numpy.array([[1, 2, 3], [4, 5, 6]], dtype='int8')
bv = numpy.array([[7], [8]], dtype='float32') bv = numpy.array([[7], [8]], dtype='float32')
...@@ -3307,6 +3311,10 @@ class T_Join_and_Split(unittest.TestCase): ...@@ -3307,6 +3311,10 @@ class T_Join_and_Split(unittest.TestCase):
eps=1.0e-4, rel_tol=1.0e-3, mode=self.mode) eps=1.0e-4, rel_tol=1.0e-3, mode=self.mode)
def test_join_matrix_ints(self): def test_join_matrix_ints(self):
if "float32" in self.shared.__name__:
raise SkipTest(
"The shared variable constructor"
" need to support other dtype then float32")
# Test mixed dtype. There was a bug that caused crash in the past. # Test mixed dtype. There was a bug that caused crash in the past.
av = numpy.array([[1, 2, 3], [4, 5, 6]], dtype='int8') av = numpy.array([[1, 2, 3], [4, 5, 6]], dtype='int8')
bv = numpy.array([[7], [8]], dtype='int32') bv = numpy.array([[7], [8]], dtype='int32')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论