MCPcopy Create free account
hub / github.com/huggingface/transformers / test_step

Method test_step

examples/seq2seq/finetune.py:174–175  ·  view source on GitHub ↗
(self, batch, batch_idx)

Source from the content-addressed store, hash-verified

172 return base_metrics
173
174 def test_step(self, batch, batch_idx):
175 return self._generative_step(batch)
176
177 def test_epoch_end(self, outputs):
178 return self.validation_epoch_end(outputs, prefix="test")

Callers

nothing calls this directly

Calls 1

_generative_stepMethod · 0.95

Tested by

no test coverage detected