Theano/Theano — Issue #308: scanOp_save_mem optimization
Author: nouiz
Created: 2011-12-21 21:04:35+00:00
State: open

scanOp_save_mem optimization cause run time error related to IncSubtensor like this:

ValueError: ('array dimensions are not compatible for copy',
IncSubtensor{InplaceSet;:int64:}(,
, ), [IncSubtensor{InplaceSet;:int64:}.
0])

The current work around is to disable the optimization with a theano flag like this:

THEANO_FLAGS=optimizer_excluding=scanOp_save_mem python testscript.py

This is discussed in this thread: https://groups.google.com/group/theano-users/browse_thread/thread/59bbe7cb143bdd6