提交 c9cdbb10 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Raise error if logical shapes are passed.

This would change the actual output, so we cannot simply ignore them.
上级 85ca50fa
......@@ -101,6 +101,12 @@ def conv2d(input, filters, input_shape=None, filter_shape=None,
of shape (batch size, output channels, output rows, output columns)
"""
if 'imshp_logical' in kwargs or 'kshp_logical' in kwargs:
raise ValueError(
"Keyword arguments 'imshp_logical' and 'kshp_logical' for conv2d "
"are not supported anymore (and have not been a reliable way to "
"perform upsampling). That feature is still available by calling "
"theano.tensor.nnet.conv.conv2d() for the time being.")
if len(kwargs.keys()) > 0:
warnings.warn(str(kwargs.keys()) +
" are now deprecated in "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论