How to get a flattened view of PyTorch model parameters?
How to get a flattened view of PyTorch model parameters? Question: I want to have a flattened view of the parameters belonging to my Pytorch model. Note it should be a view and not a copy of the parameters. In other words, when I modify the parameters in the view it should also modify the …