Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TokenAndPositionEmbedding layer warning---Respecting padding mask or destroying it? #19794

Open
amcmahon17 opened this issue Jun 3, 2024 · 0 comments
Assignees

Comments

@amcmahon17
Copy link

"/usr/local/lib/python3.11/dist-packages/keras/src/layers/layer.py:847: UserWarning: Layer 'position_embedding' (of type PositionEmbedding) was passed an input with a mask attached to it. However, this layer does not support masking and will therefore destroy the mask information. Downstream layers will not see the mask.
warnings.warn("

Hello, I'm having trouble understanding this warning. Does TokenAndPositionEmbedding respect zero padding masks despite this warning? I'm passing in data with mask_zero=True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants