Skip to content

fix global avg pool bug - #722

Closed
Jhonve wants to merge 1 commit into
traveller59:masterfrom
Jhonve:master
Closed

fix global avg pool bug#722
Jhonve wants to merge 1 commit into
traveller59:masterfrom
Jhonve:master

Conversation

@Jhonve

@Jhonve Jhonve commented Oct 11, 2024

Copy link
Copy Markdown

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

Jhonve commented Oct 11, 2024

Copy link
Copy Markdown
Author

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