from tensorflow.python.tools import inspect_checkpoint as chkp
from tensorflow.python.framework import meta_graph
input_graph_def = meta_graph.read_meta_graph_file("model2.ckpt.meta").graph_def
for node in input_graph_def.node:
print(node.name)
tensorboard --logdir=/Users/fire/A