Skip to content

Commit ef1f952

Browse files
committed
Remove dummy code
1 parent ca8450d commit ef1f952

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/test_tensor_creation_ops.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2700,27 +2700,6 @@ def test_gaussian_window(self, device, dtype):
27002700
for num_test in range(50):
27012701
self._test_signal_window_functions('gaussian', dtype, device, std=random.random() * 30)
27022702

2703-
@onlyNativeDeviceTypes
2704-
@precisionOverride({torch.bfloat16: 5e-2, torch.half: 1e-3})
2705-
@unittest.skipIf(not TEST_SCIPY, "Scipy not found")
2706-
@dtypesIfCUDA(torch.float, torch.double, torch.bfloat16, torch.half, torch.long)
2707-
@dtypes(torch.float, torch.double)
2708-
def test_dummy(self, device, dtype):
2709-
from scipy import signal
2710-
2711-
NP2TORCH = {
2712-
torch.float64: np.float64,
2713-
torch.float32: np.float32
2714-
}
2715-
2716-
at = 41
2717-
window_length = 100
2718-
w1 = signal.get_window(('chebwin', at), window_length, fftbins=False).astype(NP2TORCH[dtype])
2719-
# w1 = signal.windows.chebwin(100, 100, sym=True).astype(NP2TORCH[dtype])
2720-
w2 = torch.signal.windows.chebyshev_window(window_length, at=at, periodic=False, dtype=dtype, device=device)
2721-
2722-
self.assertEqual(w1, w2, exact_dtype=True)
2723-
27242703
def test_tensor_factories_empty(self, device):
27252704
# ensure we can create empty tensors from each factory function
27262705
shapes = [(5, 0, 1), (0,), (0, 0, 1, 0, 2, 0, 0)]

0 commit comments

Comments
 (0)