class_docstr: A TF1CoreSaliency class that computes saliency masks with Grad-CAM.
  
  https://arxiv.org/abs/1610.02391
  
  Example usage (based on Examples.ipynb):
  
  grad_cam = GradCam(graph, sess, x=x, conv_layer=conv_layer)
  mask = grad_cam.GetMask(im,
                          should_resize = False,
                          three_dims = False)
  
  The Grad-CAM paper suggests using the last convolutional layer, which would
  be 'Mixed_5c' in inception_v2 and 'Mixed_7c' in inception_v3.
class_docstr_tok: ["A","TF1CoreSaliency","class","that","computes","saliency","masks","with","Grad-CAM",".","https",":","\/\/arxiv.org\/abs\/1610.02391","Example","usage","(","based","on","Examples.ipynb",")",":","grad_cam","=","GradCam","(","graph",",","sess",",","x=x",",","conv_layer=conv_layer",")","mask","=","grad_cam.GetMask","(","im",",","should_resize","=","False",",","three_dims","=","False",")","The","Grad-CAM","paper","suggests","using","the","last","convolutional","layer",",","which","would","be","'Mixed_5c","'","in","inception_v2","and","'Mixed_7c","'","in","inception_v3","."]
code: def __init__(self, graph, session, y, x, conv_layer):
      super(GradCam, self).__init__(graph, session, y, x, conv_layer)
      self.core_instance = core_grad_cam.GradCam()
  
imports: from .base import TF1CoreSaliency
  from ..core import grad_cam
label_desc: Use image node_id 1 to create a new GradCam object from inherited base classes: TF1CoreSaliency with example: obj = GradCam(graph, session, y, x, conv_layer)