code: def test_rfft_float(self):
      # Test that numpy's default float64 output is cast to theano input type
      eps = 1e-1
  
      def f_rfft(inp):
          return fft.rfft(inp)
  
      inputs_val = np.random.random((1, N)).astype(theano.config.floatX)
      utt.verify_grad(f_rfft, [inputs_val], eps=eps)
  
      def f_irfft(inp):
          return fft.irfft(inp)
  
      inputs_val = np.random.random((1, N // 2 + 1, 2)).astype(
          theano.config.floatX
      )
      utt.verify_grad(f_irfft, [inputs_val], eps=eps)
  
file_path: Theano/theano/tensor/tests/test_fft.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import unittest
  import theano
  from theano import tensor
  from theano.tests import unittest_tools
  from theano.tensor import fft
label_desc: Use image node_id 1 for calling the TestFFT obj's underlying member method code with example usage: obj.test_rfft_float() and returns: fft, fft