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

Method export

flowmap/model/model_wrapper_overfit.py:107–112  ·  view source on GitHub ↗
(self, device: torch.device)

Source from the content-addressed store, hash-verified

105 return optim.Adam(self.parameters(), lr=self.cfg.lr)
106
107 def export(self, device: torch.device) -> ModelExports:
108 return self.model.export(
109 self.batch.to(device),
110 self.flows.to(device),
111 self.global_step,
112 )

Callers 1

overfitFunction · 0.95

Calls 1

toMethod · 0.45

Tested by

no test coverage detected