class_docstr: Base class for TF saliency masks. Alone, this class doesn't do anything.
class_docstr_tok: ["Base","class","for","TF","saliency","masks",".","Alone",",","this","class","does","n't","do","anything","."]
docstr: TF1-specific class to create saliency masks.
  
  Args:
    graph: The TensorFlow graph to evaluate masks on.
    session: The current TensorFlow session.
    y: The output tensor to compute the SaliencyMask against. This tensor
        shape should be (None,), (batch_size), or () if not batching inputs.
    x: The input tensor to compute the SaliencyMask against. The outer
        dimension should be the batch size.
docstr_tok: ["TF1-specific","class","to","create","saliency","masks",".","Args",":","graph",":","The","TensorFlow","graph","to","evaluate","masks","on",".","session",":","The","current","TensorFlow","session",".","y",":","The","output","tensor","to","compute","the","SaliencyMask","against",".","This","tensor","shape","should","be","(","None",",",")",",","(","batch_size",")",",","or","(",")","if","not","batching","inputs",".","x",":","The","input","tensor","to","compute","the","SaliencyMask","against",".","The","outer","dimension","should","be","the","batch","size","."]
code: def __init__(self, graph, session, y, x):
      """TF1-specific class to create saliency masks.
  
      Args:
        graph: The TensorFlow graph to evaluate masks on.
        session: The current TensorFlow session.
        y: The output tensor to compute the SaliencyMask against. This tensor
            shape should be (None,), (batch_size), or () if not batching inputs.
        x: The input tensor to compute the SaliencyMask against. The outer
            dimension should be the batch size.
      """
  
      self.graph = graph
      self.session = session
      self.y = y
      self.x = x
  
file_path: saliency/saliency/tf1/base.py
imports: from .None import utils
  import numpy
label_desc: Use image node_id 1 to create a new TF1Saliency object from inherited base classes: object with example: obj = TF1Saliency(graph, session, y, x)