def safe_no_dnn_workmem_bwd(workmem):
 if workmem:
  raise RuntimeError('The option `dnn.conv.workmem_bwd` has been removed and should not be used anymore. Please use the options `dnn.conv.algo_bwd_filter` and `dnn.conv.algo_bwd_data` instead.')
 return True

def safe_no_dnn_workmem_bwd ( workmem ) : if workmem : raise RuntimeError ( 'The option `dnn.conv.workmem_bwd` has been removed and should not be used anymore. Please use the options `dnn.conv.algo_bwd_filter` and `dnn.conv.algo_bwd_data` instead.' ) return True
make sure the user is not attempting to use dnn .