提交 7168c81b authored 作者: amrithasuresh's avatar amrithasuresh

Fixed Indentation

上级 c47021fc
...@@ -621,7 +621,7 @@ class LogSoftmax(gof.Op): ...@@ -621,7 +621,7 @@ class LogSoftmax(gof.Op):
x, = input_storage x, = input_storage
xdev = x - x.max(axis=1)[:, None] xdev = x - x.max(axis=1)[:, None]
lsm = xdev - np.log(np.sum(np.exp(xdev), axis=1, lsm = xdev - np.log(np.sum(np.exp(xdev), axis=1,
keepdims=True)) keepdims=True))
output_storage[0][0] = lsm output_storage[0][0] = lsm
def grad(self, inp, grads): def grad(self, inp, grads):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论