Greetings from India!
I was referring the book: Deep Learning with PyTorch when I came across this function:
from_numpy
It says in the docstring that “the returned tensor is not resizable” but when I did something like this:
img = torch.from_numpy(img_arr)
img.resize_(3,720,1280)
It returned me a resized tensor. Can you please help?
I have just started with PyTorch and I am absolutely loving it though.