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

Cleanup unnecessary SpectralFuncInfo logic #48712

Closed
wants to merge 15 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions torch/testing/_internal/common_methods_invocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,17 +451,10 @@ def __init__(self,
*,
ref=None, # Reference implementation (probably in np.fft namespace)
dtypes=floating_and_complex_types(),
dtypesIfCPU=None,
dtypesIfCUDA=None,
dtypesIfROCM=None,
ndimensional: bool, # Whether dim argument can be a tuple
skips=None,
decorators=None,
**kwargs):
dtypesIfCPU = dtypesIfCPU if dtypesIfCPU is not None else dtypes
dtypesIfCUDA = dtypesIfCUDA if dtypesIfCUDA is not None else dtypes
dtypesIfROCM = dtypesIfROCM if dtypesIfROCM is not None else dtypes

# gradgrad is quite slow
if not TEST_WITH_SLOW:
skips = skips if skips is not None else []
Expand All @@ -472,9 +465,6 @@ def __init__(self,

super().__init__(name=name,
dtypes=dtypes,
dtypesIfCPU=dtypesIfCPU,
dtypesIfCUDA=dtypesIfCUDA,
dtypesIfROCM=dtypesIfROCM,
skips=skips,
decorators=decorators,
**kwargs)
Expand Down