hard20 pts · first answer countspytorchtensor-shapes
view() after a transpose
What happens when this code runs?
import torch x = torch.randn(4, 6) y = x.t() z = y.view(24)
Discussion 0
Join free to post in the discussion.
Related questions
- Dropout after eval()Machine Learning Engineer
- Different results every inference runMachine Learning Engineer
- Gradient of a sum of squaresMachine Learning Engineer
- Training loop without zero_gradMachine Learning Engineer
- Softmax before CrossEntropyLossMachine Learning Engineer
- Shape after a batched matmulMachine Learning Engineer