def GetMask(self, x_value, feed_dict={}):
    'Returns a GuidedBackprop mask.'
    with self.guided_graph.as_default():
        guided_feed_dict = {}
        for tensor in feed_dict:
            guided_feed_dict[tensor.name] = feed_dict[tensor]
        guided_feed_dict[self.x.name] = [x_value]
    return self.guided_sess.run(self.guided_grads_node, feed_dict=guided_feed_dict)[0]
Returns a GuidedBackprop mask.
def GetMask(self, x_value, feed_dict={}):
    
    with self.guided_graph.as_default():
        guided_feed_dict = {}
        for tensor in feed_dict:
            guided_feed_dict[tensor.name] = feed_dict[tensor]
        guided_feed_dict[self.x.name] = [x_value]
    return self.guided_sess.run(self.guided_grads_node, feed_dict=guided_feed_dict)[0]