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

Function _irfft

tensorflow/python/ops/signal/fft_ops.py:133–145  ·  view source on GitHub ↗

Wrapper irfft* that infers fft_length argument.

(input_tensor, fft_length=None, name=None)

Source from the content-addressed store, hash-verified

131 """Wrapper around gen_spectral_ops.irfft* that infers fft_length argument."""
132
133 def _irfft(input_tensor, fft_length=None, name=None):
134 """Wrapper irfft* that infers fft_length argument."""
135 with _ops.name_scope(name, default_name,
136 [input_tensor, fft_length]) as name:
137 input_tensor = _ops.convert_to_tensor(input_tensor, _dtypes.complex64)
138 input_tensor.shape.with_rank_at_least(fft_rank)
139 if fft_length is None:
140 fft_length = _infer_fft_length_for_irfft(input_tensor, fft_rank)
141 else:
142 fft_length = _ops.convert_to_tensor(fft_length, _dtypes.int32)
143 input_tensor = _maybe_pad_for_rfft(input_tensor, fft_rank, fft_length,
144 is_reverse=True)
145 return ifft_fn(input_tensor, fft_length, name)
146 _irfft.__doc__ = ifft_fn.__doc__
147 return _irfft
148

Callers

nothing calls this directly

Calls 4

_maybe_pad_for_rfftFunction · 0.85
with_rank_at_leastMethod · 0.80
name_scopeMethod · 0.45

Tested by

no test coverage detected