Skip to content

fairseq2 breaks / will break with PyTorch nightlies #1453

@colesbury

Description

@colesbury

The torch.cc file copies the definition of THPVariable which has changed. It's now just at::Tensor cdata instead of at::MaybeOwned<at::Tensor> cdata.

struct THPVariable {
PyObject_HEAD
at::MaybeOwned<at::Tensor> cdata;
};

https://github.com/pytorch/pytorch/blob/84a7a34e5fb22c89530791136dc5f3023d2f709b/torch/csrc/autograd/python_variable.h#L17-L28

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions