Franck Dernoncourt Franck Dernoncourt - 3 months ago 18
Python Question

Theano: when was the filter_flip parameter for conv2d introduced? (TypeError: __init__() got an unexpected keyword argument 'filter_flip')

When was the

filter_flip
parameter for
theano.tensor.nnet.conv2d()
introduced in Theano? (i.e., which is the minimum Theano version that supports it?)

My version (
0.7.0.dev-8d3a67b73fda49350d9944c9a24fc9660131861c
) doesn't have it:

File "/usr/local/lib/python2.7/dist-packages/theano/tensor/nnet/conv.py", line 146, in conv2d
imshp=imshp, kshp=kshp, nkern=nkern, bsize=bsize, **kargs)
TypeError: __init__() got an unexpected keyword argument 'filter_flip'


Theano's change log doesn't mention
filter_flip
. The documentation for
theano.tensor.nnet.conv2d()
doesn't mention the minimum required version.

Answer

It appears in version 0.8.0.

Note that in that release the implementation of theano.tensor.nnet.conv2d() found in theano/tensor/nnet/conv.py becomes deprecated and is replaced by the new implementation placed into theano/tensor/nnet/__init__.py and theano/tensor/nnet/abstract_conv.py.