#NEWLINE# def test_infer_shape( self ) : #NEWLINE# #INDENT# x = tensor . dmatrix ( ) #NEWLINE# y = tensor . dscalar ( ) #NEWLINE# z = tensor . iscalar ( ) #NEWLINE# for test_offset in ( ( - 5 ) , ( - 4 ) , ( - 1 ) , 0 , 1 , 4 , 5 ) : #NEWLINE# #INDENT# self . _compile_and_check ( [ x , y , z ] , [ self . op ( x , y , z ) ] , [ numpy . random . rand ( 8 , 5 ) , numpy . random . rand ( ) , z ] , self . op_class ) #NEWLINE# self . _compile_and_check ( [ x , y , z ] , [ self . op ( x , y , z ) ] , [ numpy . random . rand ( 5 , 8 ) , numpy . random . rand ( ) , test_offset ] , self . op_class )