@@ -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