提交 a7dbed9c authored 作者: Frederic Bastien's avatar Frederic Bastien

backport to python 2.4

上级 ebbbd91d
......@@ -53,7 +53,8 @@ class TestConv2D(unittest.TestCase):
theano_output = theano_conv(image_data, filter_data)
############# REFERENCE IMPLEMENTATION ############
s = 1. if border_mode is 'full' else -1.
s = 1.
if border_mode is not 'full': s = -1.
out_shape2d = numpy.array(N_image_shape[-2:]) +\
s*numpy.array(N_filter_shape[-2:]) - s
out_shape2d = numpy.ceil(out_shape2d / numpy.array(subsample))
......
......@@ -942,7 +942,7 @@ def test_log1p():
f = function([z], T.log(1+(z)), mode=m)
assert [node.op for node in f.maker.env.toposort()] == [T.log1p]
class test_local_subtensor_unary():
class test_local_subtensor_unary(unittest.TestCase):
def test0(self):
# basic test that the Op works
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论