Question 1/7 fast.ai v4 lecture 4

How do you reshape tensors in PyTorch?

Answer

By using the view method.

Relevant part of lecture

supplementary material

PyTorch docs on the view method