MCPcopy
hub / github.com/yerfor/GeneFacePlusPlus / validation_step

Method validation_step

utils/commons/base_task.py:179–186  ·  view source on GitHub ↗

:param sample: :param batch_idx: :return: output: {"losses": {...}, "total_loss": float, ...} or (total loss: torch.Tensor, loss_log: dict)

(self, sample, batch_idx)

Source from the content-addressed store, hash-verified

177 pass
178
179 def validation_step(self, sample, batch_idx):
180 """
181
182 :param sample:
183 :param batch_idx:
184 :return: output: {"losses": {...}, "total_loss": float, ...} or (total loss: torch.Tensor, loss_log: dict)
185 """
186 raise NotImplementedError
187
188 def validation_end(self, outputs):
189 """

Callers 4

test_stepMethod · 0.95
forwardMethod · 0.45
_run_ddp_forwardMethod · 0.45
evaluateMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_stepMethod · 0.76