Skip to content

Complex Autograd support for torch.dist is currently untested #53516

@anjali411

Description

@anjali411

Remove the existing method_tests (that aren't currently testing complex) and add an OpInfo test instead.

>>> x = torch.randn(4, dtype=torch.cdouble, requires_grad=True)
>>> y = torch.randn(4, dtype=torch.cdouble, requires_grad=True)
>>> torch.autograd.gradcheck(torch.dist, [x, y, 3.5])
True

cc @ezyang @anjali411 @dylanbespalko @mruberry @VitalyFedyunin @walterddr @aocsa

Metadata

Metadata

Assignees

Labels

complex_autogradmodule: complexRelated to complex number support in PyTorchmodule: testsIssues related to tests (not the torch.testing module)triagedThis 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