init = tf.initialize_all_variables()
saver = tf.train.Saver()
sess = tf.Session()
sess.run(init)
save_path = saver.save(sess, '/model.ckpt')
sess.close()
Why do we use name parameter when creating a variable in Tensorflow?