#NEWLINE# def generate_normalisation_mask( self ) : #NEWLINE# #INDENT# '\n        when the clipped input is multiplied by the normalisation mask, the normalisation denominators are generated.\n        So then we can just divide the input by the normalisation constants (elementwise).\n        ' #NEWLINE# mask = np . zeros ( ( 37 , 37 ) , dtype = 'float32' ) #NEWLINE# for s in self . question_slices : #NEWLINE# #INDENT# mask [ ( s , s ) ] = 1.0 #NEWLINE# #UNINDENT# return s