MCPcopy Create free account
hub / github.com/dcharatan/flowmap / __init__

Method __init__

flowmap/model/model_wrapper_overfit.py:25–42  ·  view source on GitHub ↗
(
        self,
        cfg: ModelWrapperOverfitCfg,
        model: Model,
        batch: Batch,
        flows: Flows,
        tracks: list[Tracks] | None,
        losses: list[Loss],
        visualizers: list[Visualizer],
    )

Source from the content-addressed store, hash-verified

23
24class ModelWrapperOverfit(LightningModule):
25 def __init__(
26 self,
27 cfg: ModelWrapperOverfitCfg,
28 model: Model,
29 batch: Batch,
30 flows: Flows,
31 tracks: list[Tracks] | None,
32 losses: list[Loss],
33 visualizers: list[Visualizer],
34 ) -> None:
35 super().__init__()
36 self.cfg = cfg
37 self.batch = batch
38 self.flows = flows
39 self.tracks = tracks
40 self.model = model
41 self.losses = losses
42 self.visualizers = visualizers
43
44 def to(self, device: torch.device) -> None:
45 self.batch = self.batch.to(device)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected