How to set ignore_index for a BCE task with nn.CrossEntropyLoss

Here is one. Ignore padding area in loss computation