-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
Description
In [1]: import torch
po
In [2]: from torch.autograd import Variable
In [3]: v = Variable(torch.Tensor(5))
In [4]: v.repeat(3)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-420a652fee7c> in <module>()
----> 1 v.repeat(3)
/data/users/alerer/pytorch/pytorch/torch/autograd/variable.py in __getattr__(self, name)
84 if name in self._fallthrough_methods:
85 return getattr(self.data, name)
---> 86 raise AttributeError(name)
87
88 def __getitem__(self, key):
AttributeError: repeat
lopuhin