parameters: (ifft_fn, fft_rank, default_name)
return_statement: return _irfft
docstring: Wrapper around gen_spectral_ops.irfft* that infers fft_length argument.
docstring_summary: Wrapper around gen_spectral_ops.irfft* that infers fft_length argument.
docstring_tokens: Wrapper around gen_spectral_ops . irfft * that infers fft_length argument .
function: def _irfft_wrapper(ifft_fn, fft_rank, default_name):
    """Wrapper around gen_spectral_ops.irfft* that infers fft_length argument."""
  
    def _irfft(input_tensor, fft_length=None, name=None):
      """Wrapper irfft* that infers fft_length argument."""
      with _ops.name_scope(name, default_name,
                           [input_tensor, fft_length]) as name:
        input_tensor = _ops.convert_to_tensor(input_tensor, _dtypes.complex64)
        input_tensor.shape.with_rank_at_least(fft_rank)
        if fft_length is None:
          fft_length = _infer_fft_length_for_irfft(input_tensor, fft_rank)
        else:
          fft_length = _ops.convert_to_tensor(fft_length, _dtypes.int32)
        input_tensor = _maybe_pad_for_rfft(input_tensor, fft_rank, fft_length,
                                           is_reverse=True)
        return ifft_fn(input_tensor, fft_length, name)
    _irfft.__doc__ = ifft_fn.__doc__
    return _irfft
function_tokens: def _irfft_wrapper ( ifft_fn , fft_rank , default_name ) : def _irfft ( input_tensor , fft_length = None , name = None ) : """Wrapper irfft* that infers fft_length argument.""" with _ops . name_scope ( name , default_name , [ input_tensor , fft_length ] ) as name : input_tensor = _ops . convert_to_tensor ( input_tensor , _dtypes . complex64 ) input_tensor . shape . with_rank_at_least ( fft_rank ) if fft_length is None : fft_length = _infer_fft_length_for_irfft ( input_tensor , fft_rank ) else : fft_length = _ops . convert_to_tensor ( fft_length , _dtypes . int32 ) input_tensor = _maybe_pad_for_rfft ( input_tensor , fft_rank , fft_length , is_reverse = True ) return ifft_fn ( input_tensor , fft_length , name ) _irfft . __doc__ = ifft_fn . __doc__ return _irfft