def __init__(self):
    'Constructs a ClassificationTask'
    super().__init__()
    self.base_loss = None
    self.datasets = {}
    self.meters = []
    self.num_epochs = 1
    self.test_phase_period = 1
    self.train_phases_per_epoch = 0
    self.test_only = False
    self.base_model = None
    self.optimizer = None
    self.optimizer_schedulers = {}
    self.checkpoint_dict = None
    self.checkpoint_path = None
    self.phases = []
    self.hooks = []
    self.train = True
    self.distributed_model = None
    self.distributed_loss = None
    self.phase_idx = (- 1)
    self.train_phase_idx = (- 1)
    self.num_updates = 0
    self.dataloader = None
    self.data_iterator = None
    self.losses = []
    self.broadcast_buffers_mode: BroadcastBuffersMode = BroadcastBuffersMode.BEFORE_EVAL
    self.amp_args = None
    self.amp_type = None
    self.amp_grad_scaler = None
    self.mixup_transform = None
    self.perf_log = []
    self.last_batch = None
    self.batch_norm_sync_mode = BatchNormSyncMode.DISABLED
    self.find_unused_parameters = False
    self.use_gpu = torch.cuda.is_available()
    self.dataloader_mp_context = 'spawn'
    self.bn_weight_decay = False
    self._train_only = True
    self.clip_grad_norm = None
    self.simulated_global_batchsize = None
    self.optimizer_period = 1
    self.ddp_bucket_cap_mb = 25
    self.use_sharded_ddp = False
    self.fp16_grad_compress = False
Constructs a ClassificationTask
def __init__(self):
    
    super().__init__()
    self.base_loss = None
    self.datasets = {}
    self.meters = []
    self.num_epochs = 1
    self.test_phase_period = 1
    self.train_phases_per_epoch = 0
    self.test_only = False
    self.base_model = None
    self.optimizer = None
    self.optimizer_schedulers = {}
    self.checkpoint_dict = None
    self.checkpoint_path = None
    self.phases = []
    self.hooks = []
    self.train = True
    self.distributed_model = None
    self.distributed_loss = None
    self.phase_idx = (- 1)
    self.train_phase_idx = (- 1)
    self.num_updates = 0
    self.dataloader = None
    self.data_iterator = None
    self.losses = []
    self.broadcast_buffers_mode: BroadcastBuffersMode = BroadcastBuffersMode.BEFORE_EVAL
    self.amp_args = None
    self.amp_type = None
    self.amp_grad_scaler = None
    self.mixup_transform = None
    self.perf_log = []
    self.last_batch = None
    self.batch_norm_sync_mode = BatchNormSyncMode.DISABLED
    self.find_unused_parameters = False
    self.use_gpu = torch.cuda.is_available()
    self.dataloader_mp_context = 'spawn'
    self.bn_weight_decay = False
    self._train_only = True
    self.clip_grad_norm = None
    self.simulated_global_batchsize = None
    self.optimizer_period = 1
    self.ddp_bucket_cap_mb = 25
    self.use_sharded_ddp = False
    self.fp16_grad_compress = False