提交 d76353af authored 作者: Frederic's avatar Frederic

Remove all left over from merge_optimizer

上级 f4895027
...@@ -212,11 +212,11 @@ optimization you wrote. For example, consider the following: ...@@ -212,11 +212,11 @@ optimization you wrote. For example, consider the following:
Nothing happened here. The reason is: ``add(y, z) != add(y, Nothing happened here. The reason is: ``add(y, z) != add(y,
z)``. That is the case for efficiency reasons. To fix this problem we z)``. That is the case for efficiency reasons. To fix this problem we
first need to merge the parts of the graph that represent the same first need to merge the parts of the graph that represent the same
computation, using the ``merge_optimizer`` defined in computation, using the ``MergeOptimizer`` defined in
``theano.gof.opt``. ``theano.gof.opt``.
>>> from theano.gof.opt import merge_optimizer >>> from theano.gof.opt import MergeOptimizer
>>> merge_optimizer.optimize(e) # doctest: +ELLIPSIS >>> MergeOptimizer().optimize(e) # doctest: +ELLIPSIS
(0, ..., None, None, {}, 1, 0) (0, ..., None, None, {}, 1, 0)
>>> e >>> e
[true_div(mul(*1 -> add(y, z), x), *1)] [true_div(mul(*1 -> add(y, z), x), *1)]
......
...@@ -104,7 +104,7 @@ optdb.register('gpu_after_fusion', ...@@ -104,7 +104,7 @@ optdb.register('gpu_after_fusion',
'gpu') 'gpu')
# Register merge_optimizer as a global opt # Register merge_optimizer as a global opt
gpu_optimizer.register('gpu_merge', theano.gof.opt.merge_optimizer, gpu_optimizer.register('gpu_merge', theano.gof.opt.MergeOptimizer(),
'fast_run', 'fast_compile', final_opt=True) 'fast_run', 'fast_compile', final_opt=True)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论