提交 306e840e authored 作者: Frederic Bastien's avatar Frederic Bastien

backport to python2.4

上级 9f49d49e
......@@ -23,8 +23,10 @@ class TestSignalConv2D(unittest.TestCase):
input = T.TensorType('float64', [False]*image_dim)()
filters = T.TensorType('float64', [False]*filter_dim)()
bsize = image_shape[0] if image_dim==3 else 1
nkern = filter_shape[0] if filter_dim==3 else 1
bsize = image_shape[0]
if image_dim!=3: bsize = 1
nkern = filter_shape[0]
if filter_dim!=3: nkern = 1
############# THEANO IMPLEMENTATION ############
# we create a symbolic function so that verify_grad can work
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论