It seems like both the mask and the indexed Tensor have a size 14 for the 0th dimension. In neural network, that usually correspond to batch.
If it does not, could you make a small code sample that we can run that reproduces the issue?