Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[complex] Enable complex autograd and jit tests for trace #51537

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/autograd/gen_variable_type.py
Expand Up @@ -90,7 +90,7 @@
'replication_pad1d', 'replication_pad2d', 'replication_pad3d',
'replication_pad1d_backward', 'replication_pad2d_backward', 'replication_pad3d_backward',
'masked_scatter', 'masked_select',
'index_fill',
'index_fill', 'trace'
}

# Some operators invalidate the grad_accumulator. Let's reset it.
Expand Down
9 changes: 1 addition & 8 deletions torch/testing/_internal/common_methods_invocations.py
Expand Up @@ -2121,14 +2121,7 @@ def reference_lgamma(x):
dtypesIfCUDA=all_types_and_complex_and(torch.bool, torch.half),
test_inplace_grad=False,
supports_tensor_out=False,
# Reference: https://github.com/pytorch/pytorch/issues/50381
test_complex_grad=False,
sample_inputs_func=sample_inputs_trace,
skips=(
SkipInfo('TestCommon', 'test_variant_consistency_jit',
dtypes=[torch.complex64, torch.complex128]),
SkipInfo('TestCommon', 'test_variant_consistency_eager',
dtypes=[torch.complex64, torch.complex128]))),
sample_inputs_func=sample_inputs_trace)
]
op_db = op_db + op_db_scipy_reference

Expand Down