Skip to content

repeat missing for Variable #458

@adamlerer

Description

@adamlerer
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions