Skip to content

Comparing tensor subclass instance with None causes segmentation fault #65779

@anjali411

Description

@anjali411

Repro:

# LoggingTensor from test_python_dispatch.py
x = LoggingTensor(torch.tensor([3.0, 4.0], requires_grad=True))
self.assertEqual(x, None)

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @albanD

Metadata

Metadata

Assignees

No one assigned

    Labels

    high prioritymodule: __torch_dispatch__module: crashProblem manifests as a hard crash, as opposed to a RuntimeErrortriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions