提交 cebbef1b authored 作者: Ian Goodfellow's avatar Ian Goodfellow

marked a test asking tensor.grad to do the wrong thing as a KnownFailureTest

上级 0e89f1ee
......@@ -2020,6 +2020,10 @@ class T_max_and_argmax(unittest.TestCase):
because there is no differentiable path from cost to the input and
not because of an error of the grad method of the op
"""
raise KnownFailureTest("The desired behavior of the grad method in this case is currently under debate. In any case, the result should be to return NaN or 0, not to report a disconnected input.")
x = matrix()
cost = argmax(x, axis=0).sum()
value_error_raised = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论