Skip to content

no_op_trainer

allennlp.training.no_op_trainer

[SOURCE]


NoOpTrainer#

@Trainer.register("no_op")
class NoOpTrainer(Trainer):
 | def __init__(self, serialization_dir: str, model: Model) -> None

Registered as a Trainer with name "no_op".

train#

class NoOpTrainer(Trainer):
 | ...
 | def train(self) -> Dict[str, Any]

get_checkpoint_state#

class NoOpTrainer(Trainer):
 | ...
 | @contextmanager
 | def get_checkpoint_state(
 |     self
 | ) -> Iterator[Tuple[Dict[str, Any], Dict[str, Any]]]