#NEWLINE# def convert_variable( self , var ) : #NEWLINE# #INDENT# vt = var . type #NEWLINE# if ( ( type ( self ) == type ( vt ) ) and ( self . typecode == vt . typecode ) and ( self . ndim == vt . ndim ) and ( self . context_name == vt . context_name ) and all ( ( ( ( sb == ob ) or ob ) for ( sb , ob ) in zip ( self . broadcastable , vt . broadcastable ) ) ) ) : #NEWLINE# #INDENT# return theano . tensor . patternbroadcast ( var , self . broadcastable )