提交 063fa257 authored 作者: notoraptor's avatar notoraptor

Flake8.

上级 b2ae1db6
...@@ -1346,11 +1346,6 @@ class MaxAndArgmax(Op): ...@@ -1346,11 +1346,6 @@ class MaxAndArgmax(Op):
if g_max_disconnected and g_max_idx_disconnected: if g_max_disconnected and g_max_idx_disconnected:
return [DisconnectedType()(), DisconnectedType()()] return [DisconnectedType()(), DisconnectedType()()]
axis_grad = grad_undefined(
self, 1, axis,
"argmax is not defined for non-integer axes so"
" argmax(x, axis+eps) is undefined")
# if the max is disconnected but the argmax is not, # if the max is disconnected but the argmax is not,
# the gradient on its inputs is zero # the gradient on its inputs is zero
if g_max_disconnected: if g_max_disconnected:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论