def test_outputs_taps_check():
 x = tensor.fvector('x')
 y = tensor.fvector('y')
 f = (lambda x, y: [x])
 outputs_info = {'initial': y, 'taps': [0]}
 assert_raises(ValueError, theano.scan, f, x, outputs_info)
 outputs_info = {'initial': y, 'taps': [(-1), (-1)]}
 assert_raises(ValueError, theano.scan, f, x, outputs_info)
 print('done')

def test_outputs_taps_check ( ) : x = tensor . fvector ( 'x' ) y = tensor . fvector ( 'y' ) f = ( lambda x , y : [ x ] ) outputs_info = { 'initial' : y , 'taps' : [ 0 ] } assert_raises ( ValueError , theano . scan , f , x , outputs_info ) outputs_info = { 'initial' : y , 'taps' : [ ( - 1 ) , ( - 1 ) ] } assert_raises ( ValueError , theano . scan , f , x , outputs_info ) print ( 'done' )
checks that errors are raised with bad output_info taps .