提交 7766b9e5 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

removed a line of a unit test that was enforcing incorrect behavior

上级 86c8a2ec
......@@ -3493,7 +3493,11 @@ class TestMakeVector(utt.InferShapeTester):
for var, grval in zip((b, i, d), g_val):
float_inputs = []
if var.dtype.startswith('int'):
assert grval == 0
pass
# Currently we don't do any checks on these variables
# verify_grad doesn't support integer inputs yet
# however, the gradient on them is *not* defined to
# be 0
elif var not in inputs:
assert grval == 0
else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论