提交 dcc5c958 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Increase the max_ratio of equilibrium

My optimization pushes in the main graph a lot of computations in terms of constants, and constant folding maxes out pretty quickly. This is a quick fix to that. I'm not sure if 50 is not too much, I haven't played with that value .. maybe 20 or something would suffice. I would also like to increase this value only for constant folding and not all the others, but I didn't know how.
上级 a0aee682
......@@ -168,7 +168,10 @@ class EquilibriumDB(DB):
opts = super(EquilibriumDB, self).query(*tags, **kwtags)
return opt.EquilibriumOptimizer(opts,
max_depth=5,
max_use_ratio=11,#upgraded to 11 to don't generated useless output in test.
max_use_ratio=50,#upgraded to 50 to avoid equibriumOptimizer
# to be max'ed out by constant folding (can
# I increase the max ratio only for
# constant folding somehow?
failure_callback=opt.NavigatorOptimizer.warn_inplace)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论