提交 247769b6 authored 作者: Frederic Bastien's avatar Frederic Bastien

Correctly register softmax opt as stabilize opt.

上级 18f2d661
......@@ -736,7 +736,8 @@ class LogSoftmax(gof.Op):
logsoftmax_op = LogSoftmax()
@opt.register_specialize('stabilize', 'fast_compile')
@opt.register_stabilize('fast_compile')
@opt.register_specialize('fast_compile')
@gof.local_optimizer([tensor.Elemwise])
def local_logsoftmax(node):
"""
......@@ -756,7 +757,8 @@ def local_logsoftmax(node):
return [ret]
@opt.register_specialize('stabilize', 'fast_compile')
@opt.register_stabilize('fast_compile')
@opt.register_specialize('fast_compile')
@gof.local_optimizer([SoftmaxGrad])
def local_logsoftmax_grad(node):
"""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论