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

Simple ViT error #7

Open
matrix0117 opened this issue Oct 24, 2023 · 1 comment
Open

Simple ViT error #7

matrix0117 opened this issue Oct 24, 2023 · 1 comment

Comments

@matrix0117
Copy link

matrix0117 commented Oct 24, 2023

Hello, I'm trying to apply this to cv, using the code from Simple Vit give me this error.
image
There seems to be an error in this code
image

@NishchalPrasad
Copy link

You need to squeeze the tensor in dimensions 1 and 2. It should work then.

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