提交 5ee5d06b authored 作者: Amjad Almahairi's avatar Amjad Almahairi

removing lines with spaces

上级 8030ffa1
...@@ -1724,7 +1724,7 @@ class test_local_subtensor_make_vector(unittest.TestCase): ...@@ -1724,7 +1724,7 @@ class test_local_subtensor_make_vector(unittest.TestCase):
assert len(prog) == 1 assert len(prog) == 1
assert isinstance(prog[0].op, theano.compile.ops.DeepCopyOp) assert isinstance(prog[0].op, theano.compile.ops.DeepCopyOp)
assert f(0, 1, 2) == 0 assert f(0, 1, 2) == 0
def test_slice_idx_stop(self): def test_slice_idx_stop(self):
x, y, z = tensor.lscalars('xyz') x, y, z = tensor.lscalars('xyz')
v = make_vector(x, y, z) v = make_vector(x, y, z)
...@@ -1736,7 +1736,7 @@ class test_local_subtensor_make_vector(unittest.TestCase): ...@@ -1736,7 +1736,7 @@ class test_local_subtensor_make_vector(unittest.TestCase):
assert len(prog[0].inputs) == 2 assert len(prog[0].inputs) == 2
r = f(0, 1, 2) r = f(0, 1, 2)
assert r[0] == 0 and r[1] == 1 assert r[0] == 0 and r[1] == 1
def test_slice_idx_step(self): def test_slice_idx_step(self):
x, y, z = tensor.lscalars('xyz') x, y, z = tensor.lscalars('xyz')
v = make_vector(x, y, z) v = make_vector(x, y, z)
...@@ -1748,7 +1748,7 @@ class test_local_subtensor_make_vector(unittest.TestCase): ...@@ -1748,7 +1748,7 @@ class test_local_subtensor_make_vector(unittest.TestCase):
assert len(prog[0].inputs) == 2 assert len(prog[0].inputs) == 2
r = f(0, 1, 2) r = f(0, 1, 2)
assert r[0] == 0 and r[1] == 2 assert r[0] == 0 and r[1] == 2
def test_AdvancedSubtensor1_idx(self): def test_AdvancedSubtensor1_idx(self):
x, y, z = tensor.lscalars('xyz') x, y, z = tensor.lscalars('xyz')
v = make_vector(x, y, z) v = make_vector(x, y, z)
...@@ -3425,7 +3425,7 @@ class T_Tile(unittest.TestCase): ...@@ -3425,7 +3425,7 @@ class T_Tile(unittest.TestCase):
# replace it with a DimShuffle to add the extra parameter. # replace it with a DimShuffle to add the extra parameter.
# But it isn't supported for now, so assert that we raise an # But it isn't supported for now, so assert that we raise an
# error. # error.
self.assertRaises(ValueError, T.tile, v, (1,)*(v.ndim+1)) self.assertRaises(ValueError, T.tile, v, (1,)*(v.ndim+1))
# If the repeat parameter is shorter then m.ndim, it should # If the repeat parameter is shorter then m.ndim, it should
# pad tot he left the repeat patter with 1. It is not supported for now. # pad tot he left the repeat patter with 1. It is not supported for now.
...@@ -3433,7 +3433,7 @@ class T_Tile(unittest.TestCase): ...@@ -3433,7 +3433,7 @@ class T_Tile(unittest.TestCase):
#topo = f.maker.fgraph.toposort() #topo = f.maker.fgraph.toposort()
#assert len(topo) == 1 #assert len(topo) == 1
#assert isinstance(topo[0].op, DimShuffe) #assert isinstance(topo[0].op, DimShuffe)
self.assertRaises(ValueError, T.tile, m, (1,)*(m.ndim-1)) self.assertRaises(ValueError, T.tile, m, (1,)*(m.ndim-1))
#f = theano.function([var], T.tile(m, (1,)*(m.ndim-1))) #f = theano.function([var], T.tile(m, (1,)*(m.ndim-1)))
#topo = f.maker.fgraph.toposort() #topo = f.maker.fgraph.toposort()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论