def METHOD_NAME(self, sx, sy, sw, sh, tx, ty, tw, th, tobj):
    loss_x = ops.sigmoid_cross_entropy_with_logits(sx, F.sigmoid(tx))
    loss_y = ops.sigmoid_cross_entropy_with_logits(sy, F.sigmoid(ty))
    loss_w = paddle.abs(sw - tw)
    loss_h = paddle.abs(sh - th)
    loss = paddle.add_n([loss_x, loss_y, loss_w, loss_h])
    weighted_loss = paddle.mean(loss * F.sigmoid(tobj))
    return weighted_loss