-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Description
When changing from the pip version of pytorch to building the latest from git, this does not work anymore:
> v = torch.autograd.Variable(torch.randn(3, 4))
> v.resize(4, 3)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-12-738e5d4291ad> in <module>()
1 v = torch.autograd.Variable(torch.randn(3, 4))
----> 2 v.resize(4, 3)
~/workspace/pytorch/torch/autograd/variable.py in resize(self, *sizes)
559
560 def resize(self, *sizes):
--> 561 return Resize.apply()(self, sizes)
562
563 def resize_as(self, variable):
TypeError: forward() missing 2 required positional arguments: 'tensor' and 'sizes'
The version of pytorch I'm using:
> pip3 freeze | grep pytorch
-e [email protected]:pytorch/pytorch.git@faa7c2cc2c9214608c020adbfe5fc826101fba4b#egg=torch
Built like this:
> cd pytorch-git-clone
> sudo -H python3 setup.py build
> sudo -H python3 setup.py develop
Metadata
Metadata
Assignees
Labels
No labels