提交 f5648722 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Fixed comments

上级 a5985c7a
...@@ -21,7 +21,7 @@ class test_ifelse(unittest.TestCase): ...@@ -21,7 +21,7 @@ class test_ifelse(unittest.TestCase):
def test_lazy_if(self): def test_lazy_if(self):
# Tests that lazy if works .. even if the two results have different # Tests that lazy if works .. even if the two results have different
# shapes but the same type (i.e. both vectors, or matrices or # shapes but the same type (i.e. both vectors, or matrices or
# whatnot of same dtype # whatnot of same dtype)
x = tensor.vector('x') x = tensor.vector('x')
y = tensor.vector('y') y = tensor.vector('y')
c = tensor.iscalar('c') c = tensor.iscalar('c')
...@@ -38,9 +38,7 @@ class test_ifelse(unittest.TestCase): ...@@ -38,9 +38,7 @@ class test_ifelse(unittest.TestCase):
assert numpy.allclose(vy, f(0, vx, vy)) assert numpy.allclose(vy, f(0, vx, vy))
def test_lazy_if_inplace(self): def test_lazy_if_inplace(self):
# Tests that lazy if works .. even if the two results have different # Tests that lazy if works inplace
# shapes but the same type (i.e. both vectors, or matrices or
# whatnot of same dtype
x = tensor.vector('x') x = tensor.vector('x')
y = tensor.vector('y') y = tensor.vector('y')
c = tensor.iscalar('c') c = tensor.iscalar('c')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论