Python 2.7 theano.tensor.nnet.conv2d中的参数
我想在使用theano.tensor.nnet.con2d时添加pad,使输出形状与输入形状相等Python 2.7 theano.tensor.nnet.conv2d中的参数,python-2.7,theano,Python 2.7,Theano,我想在使用theano.tensor.nnet.con2d时添加pad,使输出形状与输入形状相等 conv_Out = conv2d( input = input_Re, filters = self.W, filter_shape = filter_Shape, border_mode = (pad_C,pad_R), #border_
conv_Out = conv2d(
input = input_Re,
filters = self.W,
filter_shape = filter_Shape,
border_mode = (pad_C,pad_R),
#border_mode = 'half'
subsample = stride)
如果border_mode=(pad_C,pad_R),则会出现类似“在字符串格式化过程中并非所有参数都已转换”的错误。
如果border_mode='half',则会出现类似“mode half not implemented”的错误。
如果border_mode等于default,则一切正常
怎么了?
非常感谢。运气不好,如果你看看
theano.tensor.nnet.con2d
的源代码,你会发现它根本不支持填充或“half”选项,而不是当前文档中所声称的
我使用的是
theano.sandbox.cuda.dnn.dnn_conv
,它支持填充。真倒霉,如果你看看theano.tensor.nnet.con2d
的源代码,你会发现它根本不支持填充或“half”选项,而不是当前文档中所声称的
我使用theano.sandbox.cuda.dnn.dnn\u conv
代替,它支持填充