class_docstr: Test case class implementing extra test functionalities.
class_docstr_tok: ["Test","case","class","implementing","extra","test","functionalities","."]
docstr: Tests that the gradient error of y=f(x) is small.
  
  Args:
    x: A tensor.
    x_init: A numpy array containing the values at which to estimate the
      gradients of y.
    y: A tensor.
    atol: Maximum absolute tolerance in gradient error.
    delta: The amount of perturbation.
docstr_tok: ["Tests","that","the","gradient","error","of","y=f","(","x",")","is","small",".","Args",":","x",":","A","tensor",".","x_init",":","A","numpy","array","containing","the","values","at","which","to","estimate","the","gradients","of","y.","y",":","A","tensor",".","atol",":","Maximum","absolute","tolerance","in","gradient","error",".","delta",":","The","amount","of","perturbation","."]
code: def assert_jacobian_is_correct(
      self, x, x_init, y, atol=1e-6, delta=1e-6
  ):
      """Tests that the gradient error of y=f(x) is small.
  
      Args:
        x: A tensor.
        x_init: A numpy array containing the values at which to estimate the
          gradients of y.
        y: A tensor.
        atol: Maximum absolute tolerance in gradient error.
        delta: The amount of perturbation.
      """
      warnings.warn(
          (
              "assert_jacobian_is_correct is deprecated and might get "
              "removed in a future version please use assert_jacobian_is_correct_fn"
          ),
          DeprecationWarning,
      )
      if tf.executing_eagerly():
          self.skipTest(reason="Graph mode only test")
      max_error, _, _ = self._compute_gradient_error(
          x, y, x_init, delta
      )
      self.assertLessEqual(max_error, atol)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import warnings
  from absl import flags
  from absl.testing import parameterized
  import numpy
  from six.moves import zip
  import tensorflow
  from tensorflow_graphics.util import tfg_flags
label_desc: Use image node_id 8 for calling the TestCase obj's underlying member method code with example usage: obj.assert_jacobian_is_correct(x, x_init, y, atol, delta) without return types