#NEWLINE# def transform_any_source( self , source_data , _ ) : #NEWLINE# #INDENT# source_needs_casting = ( isinstance ( source_data , numpy . ndarray ) and ( source_data . dtype . kind == 'f' ) and ( source_data . dtype != config . floatX ) ) #NEWLINE# if source_needs_casting : #NEWLINE# #INDENT# source_data = source_data . astype ( config . floatX ) #NEWLINE# #UNINDENT# return source_data