Skip to content

Commit

Permalink
Make the test easier to read/understand.
Browse files Browse the repository at this point in the history
  • Loading branch information
abergeron committed Jul 24, 2015
1 parent e0bf503 commit c355374
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions theano/sandbox/cuda/tests/test_dnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,9 @@ def test_dnn_conv_merge_mouts():
rr = conv * lr

f = theano.function([img, kern, out], [fr, rr], mode=mode_with_gpu)
assert not isinstance(f.maker.fgraph.outputs[0].owner.inputs[0].owner.op,
dnn.GpuDnnConv)
assert not isinstance(f.maker.fgraph.outputs[1].owner.inputs[0].owner.op,
dnn.GpuDnnConv)
convs = [n for n in f.maker.fgraph.toposort()
if isinstance(n.op, dnn.GpuDnnConv)]
assert len(convs) == 1


def test_dnn_conv_merge_broad():
Expand Down

0 comments on commit c355374

Please sign in to comment.