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

Method _training_step

utils/commons/base_task.py:96–103  ·  view source on GitHub ↗

:param sample: :param batch_idx: :return: total loss: torch.Tensor, loss_log: dict

(self, sample, batch_idx, optimizer_idx)

Source from the content-addressed store, hash-verified

94 return loss_outputs
95
96 def _training_step(self, sample, batch_idx, optimizer_idx):
97 """
98
99 :param sample:
100 :param batch_idx:
101 :return: total loss: torch.Tensor, loss_log: dict
102 """
103 raise NotImplementedError
104
105 def training_step(self, sample, batch_idx, optimizer_idx=-1):
106 """

Callers 1

training_stepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected