Skip to content

torch.unfold does not support automatic differentiation for complex tensors #51875

@anjali411

Description

@anjali411
>>> x=torch.rand(8, dtype=torch.cdouble, requires_grad=True)
>>> y=x.clone()
>>> z=y.unfold(0,2,2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: unfold does not support automatic differentiation for outputs with complex dtype.

cc @ezyang @anjali411 @dylanbespalko @mruberry

Metadata

Metadata

Assignees

Labels

complex_autogradmodule: complexRelated to complex number support in PyTorchtriagedThis 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