What is the difference between view and view_as in PyTorch?
I am building neural networks in Pytorch, I see view and view_as used interchangeably in various implementation what is the difference between them? 

view and view_as are very similar with a slight difference. In view() the shape of the desired output tensor is to be passed in as the parameter, whereas in view_as() a tensor whose shape is to be mimicked is passed.
tensor.view_as(other) is equivalent to tensor.view(other.size())
