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","."]
docstr: Tests that now error is thrown when y tensor is a single value.
docstr_tok: ["Tests","that","now","error","is","thrown","when","y","tensor","is","a","single","value","."]
code: def testValidateTensorsBatched(self):
      """Tests that now error is thrown when y tensor is a single value."""
      x_steps = 1000
      batch_size = 9
      base_instance = base.TF1CoreSaliency(
          self.graph, self.sess, self.y, self.x
      )
  
      # Check validate doesn't throw any ValueError
      base_instance.validate_xy_tensor_shape(x_steps, batch_size)
  
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 2 for calling the BaseTest obj's underlying member method code with example usage: obj.testValidateTensorsBatched() without return types