提交 4c34df86 authored 作者: Olivier Mastropietro's avatar Olivier Mastropietro

Fixes in indentation and deletion of some left out commented lines

上级 0440ea6e
......@@ -737,7 +737,7 @@ class Test_preallocated_output(unittest.TestCase):
check_preallocated_output=['c_contiguous'])
f = theano.function([a, b], out, mode=mode)
# out_val = f(a_val, b_val)
f(a_val, b_val)
# print 'out_val =', out_val
# print out_val.strides
......@@ -769,7 +769,7 @@ class Test_preallocated_output(unittest.TestCase):
check_preallocated_output=['c_contiguous'])
f = theano.function([a, b], out, mode=mode)
# out_val = f(a_val, b_val)
f(a_val, b_val)
# print 'out_val =', out_val
# print out_val.strides
......
......@@ -57,7 +57,5 @@ class TestNnet(unittest.TestCase):
# print 'Mean cost at epoch %s: %s' % (epoch, mean_cost)
self.assertTrue(abs(mean_cost - 0.20588975452) < 1e-6)
# Just call functions to make sure they do not crash.
# out = nnet.compute_output(input)
# out = nnet.output_from_hidden(numpy.ones(10))
nnet.compute_output(input)
nnet.output_from_hidden(numpy.ones(10))
......@@ -816,8 +816,7 @@ class Test_aliasing_rules(unittest.TestCase):
theano.In(m1, mutable=True),
theano.In(m2, mutable=True),
theano.In(m3, mutable=True)],
(theano.dot((x * 2), m1) +
theano.dot((y * 3), m2) +
(theano.dot((x * 2), m1) + theano.dot((y * 3), m2) +
theano.dot((z * 4), m3)))
# Compute bogus values
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论