MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / valid_step

Method valid_step

fairseq/trainer.py:382–443  ·  view source on GitHub ↗

Do forward pass in evaluation mode.

(self, sample, raise_oom=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

mainFunction · 0.45
validateFunction · 0.45
validateFunction · 0.45

Calls 5

_prepare_sampleMethod · 0.95
printFunction · 0.85
grad_denomMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected