提交 ead42e86 authored 作者: Frederic's avatar Frederic

Test the previous PR fix of equal_computations()

上级 378f82be
...@@ -7,3 +7,8 @@ def test_equal_compuations(): ...@@ -7,3 +7,8 @@ def test_equal_compuations():
# This was a bug report by a Theano user. # This was a bug report by a Theano user.
c = NoneConst c = NoneConst
assert equal_computations([c], [c]) assert equal_computations([c], [c])
m = theano.tensor.matrix()
idx = theano.tensor.ivector()
max_argmax1 = theano.tensor.max_and_argmax(m)
max_argmax2 = theano.tensor.max_and_argmax(m)
assert equal_computations(max_argmax1, max_argmax2)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论