class_docstr: To run: "python -m saliency.tf1.integrated_gradients_test" from the top-level directory.
class_docstr_tok: ["To","run",":","``","python","-m","saliency.tf1.integrated_gradients_test","''","from","the","top-level","directory","."]
code: def setUp(self):
      super().setUp()
      tf.enable_v2_tensorshape()
      self.graph = tf.Graph()
      with self.graph.as_default():
          x = tf.placeholder(shape=[None, 3], dtype=tf.float32)
          contrib = [5 * x[:, 0], x[:, 1] * x[:, 1], tf.sin(x[:, 2])]
          self.x = x
          self.y = contrib[0] + contrib[1] + contrib[2]
          self.x_indexed = self.x[0]
          self.y_indexed = self.y[0]
          self.sess = tf.Session(graph=self.graph)
          self.x_input_val = np.array([1.0, 2.0, 3.0], dtype=float)
  
file_path: saliency/saliency/tf1/base_test.py
imports: import unittest
  from .None import base
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the BaseTest obj's underlying member method code with example usage: obj.setUp() without return types