question: ValueError: Expected positive integer total_steps, but got -1
context: def configure_optimizers(self):
          optimizer = torch.optim.SGD(self.parameters(), lr=self.lr)
          print(self.trainer.max_steps)
          lr_scheduler = {
              'scheduler': torch.optim.lr_scheduler.OneCycleLR(optimizer,
                                                               max_lr=self.lr,
                                                               total_steps=self.trainer.max_steps,
                                                               anneal_strategy='linear',
                                                               cycle_momentum=False,
                                                               pct_start=0.1),
              'interval': 'step',
              'frequency': 1
          }
          return {'optimizer': optimizer, 'lr_scheduler': lr_scheduler, "monitor": 'val_acc'}
  raise ValueError("Expected positive integer total_steps, but got {}".format(total_steps))
  ValueError: Expected positive integer total_steps, but got -1
answer: ok i know the answer,