提交 229d874b authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Add a test

上级 67307744
......@@ -1154,6 +1154,11 @@ class TestBitOpReduceGrad(unittest.TestCase):
class TestElemwise(unittest_tools.InferShapeTester):
def test_elemwise_grad_bool(self):
x = theano.tensor.scalar(dtype='bool')
y = theano.tensor.bscalar()
z = x * y
dx, dy = theano.grad(z, [x, y])
def test_infer_shape(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论