tensor get list of variables code example Example: all tensors tensorflow [n.name for n in tf.get_default_graph().as_graph_def().node]