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

Method parse_batch_train

plot-pp/trainers/plotpp.py:357–362  ·  view source on GitHub ↗
(self, batch)

Source from the content-addressed store, hash-verified

355 return loss_summary
356
357 def parse_batch_train(self, batch):
358 input = batch["img"]
359 label = batch["label"]
360 input = input.to(self.device)
361 label = label.to(self.device)
362 return input, label
363
364
365 def load_model(self, directory, epoch=None):

Callers 1

forward_backwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected