提交 0016e46c authored 作者: Frederic's avatar Frederic

Remove time_eq_optimizer flags that was not release

use profile_optimizer instead.
上级 e84e5580
...@@ -581,29 +581,6 @@ import theano and print the config variable, as in: ...@@ -581,29 +581,6 @@ import theano and print the config variable, as in:
C. log_likelihood_h C. log_likelihood_h
.. attribute:: config.time_eq_optimizer
Bool value, default: False
Should each EquilibriumOptimizer print the time taken by each of its
iterations, the total number of times each of its optimizers is applied,
and informations about the total number of nodes in the graph.
Here is an example of output::
EquilibriumOptimizer specialize
time 4.760s for 4 passes, 3801 nodes max
0 - 1.961s (0.079s in global opts) - 3797 nodes
1 - 1.233s (0.080s in global opts) - 3801 nodes
2 - 0.857s (0.071s in global opts) - 3203 nodes
3 - 0.710s (0.066s in global opts) - 3095 nodes
times applied - optimizer:
384 - dimshuffle_as_view
262 - constant_folding
216 - local_subtensor_make_vector
216 - local_shape_to_shape_i
4 - local_mul_specialize
.. attribute:: config.cmodule.warn_no_version .. attribute:: config.cmodule.warn_no_version
Bool value, default: False Bool value, default: False
......
...@@ -27,11 +27,6 @@ from theano.configparser import AddConfigVar, BoolParam ...@@ -27,11 +27,6 @@ from theano.configparser import AddConfigVar, BoolParam
_logger = logging.getLogger('theano.gof.opt') _logger = logging.getLogger('theano.gof.opt')
AddConfigVar('time_eq_optimizer',
"Should EquilibriumOptimizer print the time taken by each optimizer",
BoolParam(False),
in_c_key=False)
import destroyhandler as dh import destroyhandler as dh
import traceback import traceback
...@@ -1490,29 +1485,6 @@ class EquilibriumOptimizer(NavigatorOptimizer): ...@@ -1490,29 +1485,6 @@ class EquilibriumOptimizer(NavigatorOptimizer):
+ "%f with the theano flag 'optdb.max_use_ratio'." % + "%f with the theano flag 'optdb.max_use_ratio'." %
config.optdb.max_use_ratio) config.optdb.max_use_ratio)
if config.time_eq_optimizer:
print "EquilibriumOptimizer",
print getattr(self, "name", getattr(self, "__name__", ""))
print " time %.3fs for %d passes, %d nodes max" % (
sum(loop_timing), len(loop_timing), max_nb_nodes)
for i in range(len(loop_timing)):
print '%d - %.3fs (%.3fs in global opts) - %d nodes' % (
i, loop_timing[i], global_opt_timing[i], nb_nodes[i])
print
count_opt = []
for opt, count in process_count.iteritems():
if count > 0:
count_opt.append((count, opt))
if count_opt:
print 'times applied - optimizer:'
count_opt.sort()
for (count, opt) in count_opt[::-1]:
print ' %d - %s' % (count, opt)
print
return (self, loop_timing, process_count, max_nb_nodes, return (self, loop_timing, process_count, max_nb_nodes,
global_opt_timing, nb_nodes, time_lopts, io_toposort_timing) global_opt_timing, nb_nodes, time_lopts, io_toposort_timing)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论