提交 32a8b521 authored 作者: Frederic Bastien's avatar Frederic Bastien

Add a deprecation warning for the old conv2d interface.

上级 b6a88f7a
......@@ -95,6 +95,9 @@ def conv2d(input, filters, image_shape=None, filter_shape=None,
"""
warnings.warn("theano.tensor.nnet.conv.conv2d is deprecated."
" Use theano.tensor.nnet.conv2d instead.")
# accept Constant value for image_shape and filter_shape.
if image_shape is not None:
image_shape = list(image_shape)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论