-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
complex_autogradfunction requestA request for a new function or the addition of new arguments/modes to an existing function.A request for a new function or the addition of new arguments/modes to an existing function.module: complexRelated to complex number support in PyTorchRelated to complex number support in PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
import torch
x = torch.tensor(1, dtype=torch.cfloat)
x.requires_grad = True
y = torch.sigmoid(x)
y.backward()Output:
Traceback (most recent call last):
File "test/test_exp.py", line 16, in <module>
y = torch.sigmoid(x)
RuntimeError: sigmoid does not support automatic differentiation for outputs with complex dtype.
Metadata
Metadata
Assignees
Labels
complex_autogradfunction requestA request for a new function or the addition of new arguments/modes to an existing function.A request for a new function or the addition of new arguments/modes to an existing function.module: complexRelated to complex number support in PyTorchRelated to complex number support in PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module