Skip to content

no_op_trainer

[ allennlp.training.no_op_trainer ]


NoOpTrainer Objects#

class NoOpTrainer(Trainer):
 | def __init__(self, serialization_dir: str, model: Model) -> None

Registered as a Trainer with name "no_op".

train#

 | def train(self) -> Dict[str, Any]

get_checkpoint_state#

 | @contextmanager
 | def get_checkpoint_state(
 |     self
 | ) -> Iterator[Tuple[Dict[str, Any], Dict[str, Any]]]