提交 1268d9ee authored 作者: Razvan Pascanu's avatar Razvan Pascanu

trailing whitespaces and empty lines

上级 8a03d106
...@@ -174,7 +174,6 @@ def test_inverse_singular(): ...@@ -174,7 +174,6 @@ def test_inverse_singular():
return return
assert False assert False
def test_inverse_grad(): def test_inverse_grad():
rng = numpy.random.RandomState(utt.fetch_seed()) rng = numpy.random.RandomState(utt.fetch_seed())
r = rng.randn(4, 4) r = rng.randn(4, 4)
...@@ -300,7 +299,7 @@ def test_alloc_diag_grad(): ...@@ -300,7 +299,7 @@ def test_alloc_diag_grad():
def test_diag(): def test_diag():
""" """
Test that linalg.diag has the same behavior as numpy.diag. Test that linalg.diag has the same behavior as numpy.diag.
numpy.diag has two behaviors: numpy.diag has two behaviors:
(1) when given a vector, it returns a matrix with that vector as the diagonal. (1) when given a vector, it returns a matrix with that vector as the diagonal.
(2) when given a matrix, returns a vector which is the diagonal of the matrix. (2) when given a matrix, returns a vector which is the diagonal of the matrix.
...@@ -318,7 +317,7 @@ def test_diag(): ...@@ -318,7 +317,7 @@ def test_diag():
x = theano.tensor.matrix() x = theano.tensor.matrix()
y = extract_diag(x) y = extract_diag(x)
assert y.owner.op.__class__ == ExtractDiag assert y.owner.op.__class__ == ExtractDiag
# other types should raise error # other types should raise error
x = theano.tensor.tensor3() x = theano.tensor.tensor3()
ok = False ok = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论