python - Obscure Looping Error in Theano -
i trying simulate repeat-until loop in theano:
def method_a(arguments): ... homecoming result, theano.scan.until(t.eq(a,b))
i encountered next unusual behaviour. allow b
constant. whenever a
constant, works fine. however, when a
scalar, error related optimisation:
error (theano.gof.opt): seqoptimizer apply <theano.gof.opt.equilibriumoptimizer object @ 0x110d0d8d0> error (theano.gof.opt): traceback: error (theano.gof.opt): traceback (most recent phone call last): file "[...]/lib/python2.7/site-packages/theano/gof/opt.py", line 196, in apply sub_prof = optimizer.optimize(fgraph) file "[...]/python2.7/site-packages/theano/gof/opt.py", line 82, in optimize ret = self.apply(fgraph, *args, **kwargs) file "[...]/python2.7/site-packages/theano/gof/opt.py", line 1665, in apply gopt.apply(fgraph) file "[...]/python2.7/site-packages/theano/scan_module/scan_opt.py", line 1300, in apply if self.belongs_to_set(nd, subset): file "[...]/python2.7/site-packages/theano/scan_module/scan_opt.py", line 1286, in belongs_to_set rep.op.inputs) file "[...]/python2.7/site-packages/theano/scan_module/scan_utils.py", line 452, in equal_computations dx.type.dtype == dy.type.dtype , attributeerror: 'nonetypet' object has no attribute 'dtype'
i'd appreciate if help me understand error. i'm assuming attributeerror
doesn't refer a
or b
, because can print dtype
, see have one. other that, can't create sense out of it.
[edit] not fatal error. code runs , process finishes exit code 0. looks theano trying optimise graph , fails so, doesn't impact program.
the traceback indicate in function equal_compuations(), didn't cover case, when doing comparison.
i have pr prepare here:
https://github.com/theano/theano/pull/1928
thanks report.
your [edit] section, indicate me cutting of errors message. if happear during optimization warning, mean optimization skipped. possible optimization don't apply, possible fix, optimization apply. if case, there speed fix.
python theano
No comments:
Post a Comment