(self, priors, iou_threshold, neg_pos_ratio,
                 center_variance, size_variance, device)
Implement SSD Multibox Loss.

        Basically, Multibox loss combines classification loss
         and Smooth L1 regression loss.
Implement SSD Multibox Loss.
Implement SSD Multibox Loss .
def __init__(self, priors, iou_threshold, neg_pos_ratio,
                 center_variance, size_variance, device):
        """Implement SSD Multibox Loss.

        Basically, Multibox loss combines classification loss
         and Smooth L1 regression loss.
        """
        super(MultiboxLoss, self).__init__()
        self.iou_threshold = iou_threshold
        self.neg_pos_ratio = neg_pos_ratio
        self.center_variance = center_variance
        self.size_variance = size_variance
        self.priors = priors
        self.priors.to(device)
def __init__ ( self , priors , iou_threshold , neg_pos_ratio , center_variance , size_variance , device ) : super ( MultiboxLoss , self ) . __init__ ( ) self . iou_threshold = iou_threshold self . neg_pos_ratio = neg_pos_ratio self . center_variance = center_variance self . size_variance = size_variance self . priors = priors self . priors . to ( device )