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 global avg pool bug #722

Closed
wants to merge 1 commit into from
Closed

fix global avg pool bug #722

wants to merge 1 commit into from

Conversation

Jhonve
Copy link

@Jhonve Jhonve commented Oct 11, 2024

refer to the latest torch documentation, here is an example:

real_features = torch.rand((36, 512))
real_features_reduced = torch.mean(real_features, dim=0)[0]
print(real_features_reduced.shape)
# torch.Size([])
real_features_reduced = torch.mean(real_features, dim=0, keepdim=False)
print(real_features_reduced.shape)
# torch.Size([512])

@Jhonve
Copy link
Author

Jhonve commented Oct 11, 2024

same with #708 #709 #714

@Jhonve Jhonve closed this Oct 11, 2024
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.

1 participant