MCPcopy Create free account
hub / github.com/CHENGY12/PLOT / parse_batch_train

Method parse_batch_train

plot-coop/trainers/plot.py:367–372  ·  view source on GitHub ↗
(self, batch)

Source from the content-addressed store, hash-verified

365 return loss_summary
366
367 def parse_batch_train(self, batch):
368 input = batch["img"]
369 label = batch["label"]
370 input = input.to(self.device)
371 label = label.to(self.device)
372 return input, label
373
374 def load_model(self, directory, epoch=None):
375 if not directory:

Callers 1

forward_backwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected