def __init__(self, opts):
    super(Trainer, self).__init__()
    self.opts = opts
    self.best_acc = 0
    self.start_epoch = 0
    self.max_bsz_cnn_gpu0 = opts.max_bsz_cnn_gpu0
    self.resume = (self.opts.checkpoint if ((self.opts.checkpoint is not None) and os.path.isdir(self.opts.checkpoint)) else None)
    self.global_setter()
def __init__(self, opts):
    super(Trainer, self).__init__()
    self.opts = opts
    self.best_acc = 0
    self.start_epoch = 0
    self.max_bsz_cnn_gpu0 = opts.max_bsz_cnn_gpu0
    self.resume = (self.opts.checkpoint if ((self.opts.checkpoint is not None) and os.path.isdir(self.opts.checkpoint)) else None)
    self.global_setter()