def begin(self, max_steps=None):
    super(GraphDump, self).begin(max_steps=max_steps)
    self._tensors = []
    graph = ops.get_default_graph()
    graph_def = graph.as_graph_def()
    for node in graph_def.node:
        if (node.op in self._ignore_ops):
            continue
        logging.info('op=%s name=%s.', node.op, node.name)
        try:
            self._tensors.append(graph.get_tensor_by_name((node.name + ':0')))
        except KeyError:
            pass
def begin(self, max_steps=None):
    super(GraphDump, self).begin(max_steps=max_steps)
    self._tensors = []
    graph = ops.get_default_graph()
    graph_def = graph.as_graph_def()
    for node in graph_def.node:
        if (node.op in self._ignore_ops):
            continue
        logging.info('op=%s name=%s.', node.op, node.name)
        try:
            self._tensors.append(graph.get_tensor_by_name((node.name + ':0')))
        except KeyError:
            pass