MCPcopy Create free account
hub / github.com/cewang-sysu/DuDoTrans / forward

Method forward

modules/reconstructor.py:44–46  ·  view source on GitHub ↗
(self, pred, gt)

Source from the content-addressed store, hash-verified

42 super(reconstructor_loss, self).__init__()
43
44 def forward(self, pred, gt):
45 left_loss=F.mse_loss(pred, gt, reduce=False)
46 return torch.mean(left_loss)
47
48
49if __name__=='__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected