提交 6b31175f authored 作者: Dustin Webb's avatar Dustin Webb

Streamlined test.

上级 14c219b2
......@@ -1958,11 +1958,7 @@ class TestAsTensorVariable(unittest.TestCase):
assert(x.ndim == 1)
x = tensor.matrix('x', dtype=config.floatX)
try:
x = as_tensor_variable(x, ndim=1)
assert(False) # The call above should have failed
except ValueError:
pass
self.assertRaises(ValueError, as_tensor_variable, x, ndim=1)
class TestAlloc(unittest.TestCase):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论