fixed bug in BaseTensor.filter

上级 55d06298
...@@ -102,7 +102,7 @@ class T_tensor(unittest.TestCase): ...@@ -102,7 +102,7 @@ class T_tensor(unittest.TestCase):
def test_cast0(self): def test_cast0(self):
t = BaseTensor('float32', [0]) t = BaseTensor('float32', [0])
t.data = numpy.random.rand(4) > 0.5 t.data = numpy.random.rand(4) > 0.5
print t.data self.failUnless(str(t.data.dtype) == t.dtype)
class T_stdlib(unittest.TestCase): class T_stdlib(unittest.TestCase):
def test0(self): def test0(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论