class_docstr: Neural Network related operators that involve machine learning frameworks.
  
  Args:
      framework (`str`):
          The framework to apply.
class_docstr_tok: ["Neural","Network","related","operators","that","involve","machine","learning","frameworks",".","Args",":","framework","(","`","str","`",")",":","The","framework","to","apply","."]
docstr: Start to train an operator.
  
  Args:
      training_config (`TrainingConfig`):
          The config of this trainer.
      train_dataset (`Union[Dataset, TowheeDataSet]`):
          Training dataset.
      eval_dataset (`Union[Dataset, TowheeDataSet]`):
          Evaluate dataset.
      resume_checkpoint_path (`str`):
          If resuming training, pass into the path.
      **kwargs (`Any`):
          Keyword Args.
docstr_tok: ["Start","to","train","an","operator",".","Args",":","training_config","(","`","TrainingConfig","`",")",":","The","config","of","this","trainer",".","train_dataset","(","`","Union","[","Dataset",",","TowheeDataSet","]","`",")",":","Training","dataset",".","eval_dataset","(","`","Union","[","Dataset",",","TowheeDataSet","]","`",")",":","Evaluate","dataset",".","resume_checkpoint_path","(","`","str","`",")",":","If","resuming","training",",","pass","into","the","path",".","*","*","kwargs","(","`","Any","`",")",":","Keyword","Args","."]
code: def train(
      self,
      training_config=None,
      train_dataset=None,
      eval_dataset=None,
      resume_checkpoint_path=None,
      **kwargs,
  ):
      """
      Start to train an operator.
  
      Args:
          training_config (`TrainingConfig`):
              The config of this trainer.
          train_dataset (`Union[Dataset, TowheeDataSet]`):
              Training dataset.
          eval_dataset (`Union[Dataset, TowheeDataSet]`):
              Evaluate dataset.
          resume_checkpoint_path (`str`):
              If resuming training, pass into the path.
          **kwargs (`Any`):
              Keyword Args.
      """
      self.setup_trainer(
          training_config, train_dataset, eval_dataset, **kwargs
      )
      self.trainer.train(resume_checkpoint_path)
  
imports: from abc import abstractmethod, ABC
  from enum import Enum
  from enum import Flag, auto
label_desc: Use image node_id 7 for calling the NNOperator obj's underlying member method code with example usage: obj.train(training_config, train_dataset, eval_dataset, resume_checkpoint_path) without return types