class_docstr: To run: "python -m unittest saliency.tf1.guided_ig_test" from the top-level directory.
class_docstr_tok: ["To","run",":","``","python","-m","unittest","saliency.tf1.guided_ig_test","''","from","the","top-level","directory","."]
docstr: Returns input and output for quadratic function 2 * x1^2 + x2^2.
  
  The partial derivatives of the function with respect to x1 and x2 are
  independent from each other. For such functions, the Guided IG result
  should be equivalent to regular Integrated Gradients.
docstr_tok: ["Returns","input","and","output","for","quadratic","function","2","*","x1^2","+","x2^2",".","The","partial","derivatives","of","the","function","with","respect","to","x1","and","x2","are","independent","from","each","other",".","For","such","functions",",","the","Guided","IG","result","should","be","equivalent","to","regular","Integrated","Gradients","."]
code: def _quadratic_indep_test_model(self):
      """Returns input and output for quadratic function 2 * x1^2 + x2^2.
  
      The partial derivatives of the function with respect to x1 and x2 are
      independent from each other. For such functions, the Guided IG result
      should be equivalent to regular Integrated Gradients.
      """
      x = tf.placeholder(tf.float32, (None, 2), "input")
      y = 2 * x[:, 0] ** 2 + x[:, 1] ** 2
      return x, y
  
file_path: saliency/saliency/tf1/guided_ig_test.py
imports: import unittest
  from .None import guided_ig
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling the GuidedIGTest obj's underlying member method code with example usage: obj._quadratic_indep_test_model() and returns: x,  y