MCPcopy
hub / github.com/facebookresearch/dlrm / MSEloss

Method MSEloss

dlrm_s_caffe2.py:759–764  ·  view source on GitHub ↗
(self, scale=1.0)

Source from the content-addressed store, hash-verified

757 # print(self.FetchBlobWrapper(self.tint))
758
759 def MSEloss(self, scale=1.0):
760 # add MSEloss to the model
761 self.AddLayerWrapper(self.model.SquaredL2Distance, [self.tout, self.ttar], "sd")
762 self.AddLayerWrapper(self.model.Scale, "sd", "sd2", scale=2.0 * scale)
763 # WARNING: "loss" is a special tag and should not be changed
764 self.loss = self.AddLayerWrapper(self.model.AveragedLoss, "sd2", "loss")
765
766 def BCEloss(self, scale=1.0, threshold=0.0):
767 # add BCEloss to the mode

Callers 1

dlrm_s_caffe2.pyFile · 0.80

Calls 1

AddLayerWrapperMethod · 0.95

Tested by

no test coverage detected