Hi there. I found that torch.nn. BCELoss dindn’t offer an ignore_index param like in  torch.nn. CrossEntropyLoss . I tried implementing BCE loss by calling nn.CrossEntropyLoss with preset ignore_index=-1 but failed. Does anyone got any ideas on this? Thanks.