How do I mask a loss function in Keras with the TensorFlow backend?
If there’s a mask in your model, it’ll be propagated layer-by-layer and eventually applied to the loss. So if you’re padding and masking the sequences in a correct way, the loss on the padding placeholders would be ignored. Some Details: It’s a bit involved to explain the whole process, so I’ll just break it down … Read more