class_docstr: A wrapper around SLCWATrainingLoop.
class_docstr_tok: ["A","wrapper","around","SLCWATrainingLoop","."]
code: def __init__(
      self,
      model: Model,
      triples_factory: TriplesFactory,
      sub_batch_size: int,
      automatic_memory_optimization: bool = False,
  ):
      super().__init__(
          model=model,
          triples_factory=triples_factory,
          optimizer=optim.Adam(lr=1.0, params=model.parameters()),
          automatic_memory_optimization=automatic_memory_optimization,
      )
      self.sub_batch_size = sub_batch_size
  
file_path: pykeen/tests/test_training/test_stopping.py
imports: import unittest
  from typing import List, Optional
  import torch
  from torch import optim
  from pykeen.datasets import Nations
  from pykeen.models import FixedModel, Model
  from pykeen.stoppers.early_stopping import EarlyStopper
  from pykeen.training import SLCWATrainingLoop
  from pykeen.triples import TriplesFactory
  from pykeen.typing import MappedTriples
  from tests.mocks import MockEvaluator
label_desc: Use image node_id 1 to create a new DummyTrainingLoop object from inherited base classes: SLCWATrainingLoop with example: obj = DummyTrainingLoop(model, triples_factory, sub_batch_size, automatic_memory_optimization)