提交 3f755f40 authored 作者: Melanie Ducoffe's avatar Melanie Ducoffe

remove unmerging tests which are deprecated

上级 a4d527ca
......@@ -380,17 +380,6 @@ def test_alloc_empty():
assert out.shape == (2, 3)
assert out.dtype == 'float32'
# Test that we do not merge them.
f = theano.function([], [cuda.basic_ops.gpu_alloc_empty(2, 3),
cuda.basic_ops.gpu_alloc_empty(2, 3)])
out = f()
assert out[0].shape == (2, 3)
assert out[0].dtype == 'float32'
assert out[1].shape == (2, 3)
assert out[1].dtype == 'float32'
assert len([node for node in f.maker.fgraph.apply_nodes
if isinstance(node.op, cuda.basic_ops.GpuAllocEmpty)]) == 1
def test_elemwise_empty():
# test with 0 element
......
......@@ -7538,24 +7538,13 @@ class T_Choose(utt.InferShapeTester):
def test_allocempty():
# Test that we allocated correctly
f = theano.function([], AllocEmpty("float32")(2, 3)) # change
f = theano.function([], AllocEmpty("float32")(2, 3))
assert len(f.maker.fgraph.apply_nodes) == 1
out = f()
assert out.shape == (2, 3)
assert out.dtype == 'float32'
# Test that we do not merge them.
f = theano.function([], [AllocEmpty("float32")(2, 3),
AllocEmpty("float32")(2, 3)])
out = f()
assert out[0].shape == (2, 3)
assert out[0].dtype == 'float32'
assert out[1].shape == (2, 3)
assert out[1].dtype == 'float32'
assert len([node for node in f.maker.fgraph.apply_nodes
if isinstance(node.op, AllocEmpty)]) == 2
"""
if __name__ == '__main__':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论