Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 theano.tensor.nnet.conv2d中的参数_Python 2.7_Theano - Fatal编程技术网

Python 2.7 theano.tensor.nnet.conv2d中的参数

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_

我想在使用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_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
代替,它支持填充