MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / training_step

Method training_step

locationencoder/imageencoder.py:32–35  ·  view source on GitHub ↗
(self, batch, batch_idx)

Source from the content-addressed store, hash-verified

30 return self.model(images)
31
32 def training_step(self, batch, batch_idx):
33 loss, output = self.common_step(batch, batch_idx)
34 self.log("train_loss", loss)
35 return loss
36
37 def validation_step(self, batch, batch_idx):
38 images, _, labels, _ = batch

Callers

nothing calls this directly

Calls 1

common_stepMethod · 0.95

Tested by

no test coverage detected