#NEWLINE# def __init__( self , inplace = False , workmem = None , algo = None ) : #NEWLINE# #INDENT# COp . __init__ ( self , [ 'dnn_base.c' , 'dnn_conv_base.c' , 'dnn_gw.c' ] , 'APPLY_SPECIFIC(conv_gw)' ) #NEWLINE# if ( workmem is not None ) : #NEWLINE# #INDENT# warnings . warn ( "GpuDnnConvGradW: parameter 'workmem' is deprecated. Use 'algo' instead." , stacklevel = 3 ) #NEWLINE# assert ( algo is None ) #NEWLINE# self . algo = workmem #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( algo is None ) : #NEWLINE# #INDENT# algo = config . dnn . conv . algo_bwd_filter #NEWLINE# #UNINDENT# self . algo = algo #NEWLINE# #UNINDENT# self . inplace = inplace #NEWLINE# if self . inplace : #NEWLINE# #INDENT# self . destroy_map = { #NEWLINE# #INDENT# 0 : [ 2 ] , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# assert ( self . algo in [ 'none' , 'deterministic' , 'fft' , 'small' , 'guess_once' , 'guess_on_shape_change' , 'time_once' , 'time_on_shape_change' ] )