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

Maybe a bug in your code main.py#L330? #17

Closed
AIWanderer-X opened this issue Jul 23, 2024 · 1 comment
Closed

Maybe a bug in your code main.py#L330? #17

AIWanderer-X opened this issue Jul 23, 2024 · 1 comment

Comments

@AIWanderer-X
Copy link

AIWanderer-X commented Jul 23, 2024

I compared your code against lucidrains'.

Yours:

key_pad_mask = rearrange(lengths, 'b -> b 1') <= rearrange(max_length, 'n -> 1 n')

Lucidrains':
https://github.com/lucidrains/vit-pytorch/blob/9992a615d1f3e0117a62ced39a88d48b6be68858/vit_pytorch/na_vit.py#L318

I doubt there might be a bug at this line in your code.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Copy link

Stale issue message

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

No branches or pull requests

1 participant