super().__init__()与super().forward()

阙弘博
2023-12-01

对于super(MixSoftmaxCrossEntropyLoss, self).init(ignore_index=ignore_label),它是引用MixSoftmaxCrossEntropyLoss的父类的__init__()

而对于super(MixSoftmaxCrossEntropyLoss,self).forward(*inputs),则是引用MixSoftmaxCrossEntropyLoss父类中的forward()

 类似资料: