Thank you so much, Nick! I had come up with a very gross workaround, and I wasn’t 100% sure it worked.
To be clear, if the outcome tensor(y) is padded with -100 in the locations that correspond to the padded sequence locations, then it doesn’t matter at all what the score values are in the corresponding locations in the input tensor?