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

Method common_step

locationencoder/locationencoder.py:96–98  ·  view source on GitHub ↗
(self, batch, batch_idx)

Source from the content-addressed store, hash-verified

94 self.save_hyperparameters()
95
96 def common_step(self, batch, batch_idx):
97 lonlats, label = batch
98 return self.loss_fn(self, lonlats, label)
99
100 def forward(self, lonlats):
101 embedding = self.positional_encoder(lonlats)

Callers 2

training_stepMethod · 0.95
validation_stepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected