提交 6e61aa5e authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Typo fix.

上级 06e453f9
...@@ -1063,7 +1063,7 @@ def local_advanced_indexing_crossentropy_onehot_grad(node): ...@@ -1063,7 +1063,7 @@ def local_advanced_indexing_crossentropy_onehot_grad(node):
# set out_grad according to the numerator, it may be divided later # set out_grad according to the numerator, it may be divided later
# num should be a vector or a scalar # num should be a vector or a scalar
if numpy.ndim==1 or numpy.all(num.broadcastable): if num.ndim==1 or numpy.all(num.broadcastable):
out_grad *= -num out_grad *= -num
else: else:
return return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论