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

fix bug that failure to add Resize to transforms #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yaojin17
Copy link

The original code does not support adding Resize function to transforms. For example, when I add transforms.Resize((32,32)) to transforms, it will report the bug RuntimeError: The expanded size of the tensor (64) must match the existing size (32) at non-singleton dimension 2. Target sizes: [3, 64, 64]. Tensor sizes: [3, 32, 32].
To make it work, I first decide if there is a Resize function and then add the if-else condition to determine the size of the last 2 dimensions of the feature_output.

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

Successfully merging this pull request may close these issues.

2 participants