提交 a747573c authored 作者: Tanjay94's avatar Tanjay94

Added test for fill function in var.

上级 290f3103
...@@ -257,6 +257,10 @@ class test_Broadcast(unittest.TestCase): ...@@ -257,6 +257,10 @@ class test_Broadcast(unittest.TestCase):
f(xv, yv) f(xv, yv)
assert (xv == yv).all() assert (xv == yv).all()
def test_fill_var(self):
x = tensor.matrix()
x.fill(3)
def test_fill_grad(self): def test_fill_grad(self):
# Fix bug reported at # Fix bug reported at
# https://groups.google.com/d/topic/theano-users/nQshB8gUA6k/discussion # https://groups.google.com/d/topic/theano-users/nQshB8gUA6k/discussion
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论