same memory address.
Parameters:
      * func (function) -- a Python function that takes Tensor
        inputs and returns a Tensor or a tuple of Tensors
  * **inputs** (*tuple of Tensor** or **Tensor*) -- inputs to the
    function

  * **eps** (*float**, **optional*) -- perturbation for finite
    differences

  * **atol** (*float**, **optional*) -- absolute tolerance

  * **rtol** (*float**, **optional*) -- relative tolerance

  * **raise_exception** (*bool**, **optional*) -- indicating
    whether to raise an exception if the check fails. The
    exception gives more information about the exact nature of the
    failure. This is helpful when debugging gradchecks.

  * **check_sparse_nnz** (*bool**, **optional*) -- if True,
    gradcheck allows for SparseTensor input, and for any
    SparseTensor at input, gradcheck will perform check at nnz
    positions only.

  * **nondet_tol** (*float**, **optional*) -- tolerance for non-
