Consider the following situation for Multi Label Classification.
output = torch.tensor([[0.3416, 0.6336, 0.3775, 0.2556, 0.6288]])
target = torch.tensor([[1,0,1,0,1]])
target_indices = torch.tensor([[0,2,4]])

Is there a loss function where in I can calculate the CrossEntropyLoss in the following way:
loss(output, target_indices) ?