对我来说,最直接的forword实现将使用 torch.max losses = torch.max(ap_distances - an_distances + margin, torch.Tensor([0])) 但是,我看到了其他使用 F.relu ...
確定! 回上一頁