I used my custom loss to train a model without masking layer for several times and it occurred to me I forget masking layer. Then I add a masking layer to the top of my mode