MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testIRFFT

Method testIRFFT

tensorflow/compiler/tests/fft_test.py:178–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 self._VerifyFftMethod(INNER_DIMS_3D, np.real, _to_expected, _tf_fn)
177
178 def testIRFFT(self):
179
180 def _tf_fn(x):
181 return signal.irfft(x, fft_length=[2 * (x.shape[-1] - 1)])
182
183 self._VerifyFftMethod(
184 INNER_DIMS_1D, lambda x: np.fft.rfft(np.real(x), n=x.shape[-1]),
185 lambda x: np.fft.irfft(x, n=2 * (x.shape[-1] - 1)), _tf_fn)
186
187 def testIRFFT2D(self):
188

Callers

nothing calls this directly

Calls 2

_VerifyFftMethodMethod · 0.95
rfftMethod · 0.80

Tested by

no test coverage detected