

gen_non_contig_grad_outputs (bool, optional) -- if
        "grad_outputs" is "None" and "gen_non_contig_grad_outputs" is
        "True", the randomly generated gradient outputs are made to be
        noncontiguous


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.


nondet_tol (float, optional) -- tolerance for non-
    determinism. When running identical inputs through the
    differentiation, the results must either match exactly
    (default, 0.0) or be within this tolerance. Note that a small
    amount of nondeterminism in the gradient will lead to larger
    inaccuracies in the second derivative.


check_undefined_grad (bool, optional) -- if True,
    check if undefined output grads are supported and treated as



