class QuaternionLoss(torch.nn.Module): def __init__(self): super(QuaternionLoss, self).__init__() def forward(self, output, target): los