提交 2d299c61 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fixed order of arguments

上级 f010aa39
...@@ -2336,7 +2336,7 @@ class MaxAndArgmax(Op): ...@@ -2336,7 +2336,7 @@ class MaxAndArgmax(Op):
# Set the grad to the correct position. # Set the grad to the correct position.
g_x = eq(xmax_pad, x) * g_max_pad g_x = eq(xmax_pad, x) * g_max_pad
return g_x, grad_undefined(self, axis, 1) return g_x, grad_undefined(self, 1, axis)
def __str__(self): def __str__(self):
return self.__class__.__name__ return self.__class__.__name__
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论