#NEWLINE# def configure( self , in_obj ) : #NEWLINE# #INDENT# super ( LRN , self ) . configure ( self ) #NEWLINE# if ( self . nglayer is None ) : #NEWLINE# #INDENT# assert isinstance ( self . in_shape , tuple ) #NEWLINE# ikeys = ( ( 'C' , 'H' , 'W' ) if ( len ( self . in_shape ) == 3 ) else ( 'C' , 'D' , 'H' , 'W' ) ) #NEWLINE# shapedict = { k : x for ( k , x ) in zip ( ikeys , self . in_shape ) } #NEWLINE# shapedict [ 'N' ] = self . be . bsz #NEWLINE# self . lrnparams . update ( shapedict ) #NEWLINE# self . nglayer = self . be . lrn_layer ( self . be . default_dtype , ** self . lrnparams ) #NEWLINE# self . out_shape = self . in_shape #NEWLINE# #UNINDENT# return self