Reshaping and Flattening Tensors in PyTorch | CodeSignal Learn