提交 2a410ccf authored 作者: Razvan Pascanu's avatar Razvan Pascanu

removed some commented code of an xlogy optimization that actually does not make that much sense

上级 6191287a
......@@ -1481,15 +1481,6 @@ def local_log1p(node):
else:
return _fill_chain(T.log1p(T.add(*nonconsts)), scalar_inputs)
#@register_stabilize
#@gof.local_optimizer([T.log])
#def local_xlogy(node):
# # x log(x) -> xlogx(x)
# # x log(y) -> xlogy(x,y)
# if node.op == T.log:
# log_arg, = node.inputs
# if log_arg.owner and log_arg.owner.op == T.mul:
# scalars,s
def add_calculate(num, denum, aslist = False, out_type=None):
#TODO: make sure that this function and mul_calculate are similar
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论