def run_train_split_start(self, split_idx, split_batch, opt_idx, optimizer):
    self.trainer.split_idx = split_idx
    if (self.trainer.lightning_module.automatic_optimization and (len(self.trainer.optimizers) > 1)):
        model = self.trainer.lightning_module
        model.toggle_optimizer(optimizer, opt_idx)
    self.trainer.logger_connector.on_train_split_start(split_idx, opt_idx, split_batch)
def run_train_split_start(self, split_idx, split_batch, opt_idx, optimizer):
    self.trainer.split_idx = split_idx
    if (self.trainer.lightning_module.automatic_optimization and (len(self.trainer.optimizers) > 1)):
        model = self.trainer.lightning_module
        model.toggle_optimizer(optimizer, opt_idx)
    self.trainer.logger_connector.on_train_split_start(split_idx, opt_idx, split_batch)