Skip to content

Better solution on tensor.unsqueeze function available #4608

Answered by myungjoo
robberpen asked this question in Q&A
Discussion options

You must be logged in to vote

You don't need to unsqueeze it. N:M is dealt equivalent to N:M:1. However, if you want to unsqueeze 1:N:M to N:M, use tensor_transform.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@robberpen
Comment options

@myungjoo
Comment options

Answer selected by myungjoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants