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

Keep the dim when batch_size=1 #4

Merged
merged 4 commits into from
Dec 3, 2022

Conversation

Ecalpal
Copy link
Contributor

@Ecalpal Ecalpal commented Nov 30, 2022

When batch_size==1, squeeze() will leads the shape of tensor to [C].
Use [:,0,0,:] to keep the dim [B,C]

When batch_size==1, squeeze() will leads the shape of tensor to [C].
Use [:,0,0,:] to keep the dim [B,C]
When batch_size==1, squeeze() will leads the shape of tensor to [C]. 
Use [:,0,0,:] to keep the dim [B,C]
When batch_size==1, squeeze() will leads the shape of tensor to [C]. 
Use [:,0,0,:] to keep the dim [B,C]
When batch_size==1, squeeze() will leads the shape of tensor to [C]. 
Use [:,0,0,:] to keep the dim [B,C]
@SenZHANG-GitHub SenZHANG-GitHub merged commit ddebb85 into SenZHANG-GitHub:master Dec 3, 2022
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