@parameterized.parameters((512, 64, 32, 64, np.float32, 0.0001), (512, 64, 32, 64, np.float64, 1e-08), (512, 64, 64, 64, np.float32, 0.0001), (512, 64, 64, 64, np.float64, 1e-08), (512, 72, 64, 64, np.float32, 0.0001), (512, 72, 64, 64, np.float64, 1e-08), (512, 64, 25, 64, np.float32, 0.0001), (512, 64, 25, 64, np.float64, 1e-08), (512, 25, 15, 36, np.float32, 0.0001), (512, 25, 15, 36, np.float64, 1e-08), (123, 23, 5, 42, np.float32, 0.0001), (123, 23, 5, 42, np.float64, 1e-08))
def test_stft_and_inverse_stft(self, signal_length, frame_length, frame_step, fft_length, np_rtype, tol):
    'Test that spectral_ops.stft/inverse_stft match a NumPy implementation.'
    signal = np.random.random(signal_length).astype(np_rtype)
    self._compare(signal, frame_length, frame_step, fft_length, tol)
Test that spectral_ops.stft/inverse_stft match a NumPy implementation.
@parameterized.parameters((512, 64, 32, 64, np.float32, 0.0001), (512, 64, 32, 64, np.float64, 1e-08), (512, 64, 64, 64, np.float32, 0.0001), (512, 64, 64, 64, np.float64, 1e-08), (512, 72, 64, 64, np.float32, 0.0001), (512, 72, 64, 64, np.float64, 1e-08), (512, 64, 25, 64, np.float32, 0.0001), (512, 64, 25, 64, np.float64, 1e-08), (512, 25, 15, 36, np.float32, 0.0001), (512, 25, 15, 36, np.float64, 1e-08), (123, 23, 5, 42, np.float32, 0.0001), (123, 23, 5, 42, np.float64, 1e-08))
def test_stft_and_inverse_stft(self, signal_length, frame_length, frame_step, fft_length, np_rtype, tol):
    
    signal = np.random.random(signal_length).astype(np_rtype)
    self._compare(signal, frame_length, frame_step, fft_length, tol)