Sorry for the delay, I just re-ran it in a clean conda environnement, here
are my system specs:
theano: git master
device = cuda
floatX = float32
warn_float64 = warn
on_opt_error = raise
fastmath = True
preallocate = 0.85
include_path = /opt/cuda/include
library_path = /opt/cuda/lib64
Le mercredi 7 février 2018 21:32:01 UTC+1, nouiz a écrit :
> I'm not able to reproduce it.
> On which OS? Which Theano version? Can you try a Theano version at least
> You can ignore this "error". Mostly, some optimization are skipped. But I
> would still like to fix it.
> I ran the tests like this:
> THEANO_FLAGS=device=cuda,floatX=float32 nosetests test_ctc.py &> OUT
> What are your Theano flags?
>> Hi everyone,
>> While using an OpFromGraph involving some operations with binary values,
>> there is an optimization error:
>> theano.gof.opt: ERROR: Optimization failure due to: local_add_canonizer
>>> theano.gof.opt: ERROR: node:
>>> theano.gof.opt: ERROR: TRACEBACK:
>>> theano.gof.opt: ERROR: Traceback (most recent call last):
>>> File "/home/granger/dev/Theano/theano/gof/opt.py", line 2034, in
>>> replacements = lopt.transform(node)
>>> File "/home/granger/dev/Theano/theano/tensor/opt.py", line 4989, in
>>> num, denum = self.simplify(list(orig_num), list(orig_denum), out.type)
>>> File "/home/granger/dev/Theano/theano/tensor/opt.py", line 4833, in
>>> File "/home/granger/dev/Theano/theano/tensor/opt.py", line 4919, in
>>> File "/home/granger/dev/Theano/theano/tensor/opt.py", line 6328, in
>>> v = reduce(np.add, num, zero) - reduce(np.add, denum, zero)
>>> TypeError: numpy boolean subtract, the `-` operator, is deprecated, use
>>> the bitwise_xor, the `^` operator, or the logical_xor function instead.
>> This error does not happen when running on CPU backend.
>> I suspect it might be due to the use of binary values in my code, but the
>> log message is not very helpful, is there any way to get some more
>> information to track down the error? Note that the fast_compile optimizer
>> does not trigger the error, only the fast_run one.
>> A demo code and the complete output is available here:
>> You received this message because you are subscribed to the Google Groups
>> "theano-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.