初学tensorflow遇到的问题
1.tensorboard
输入tensorboard --logdir='logs/'会出现以下错误
tensorboard: command not found。
所以在启动的是时候需要换一种方式:
python tensorflow_path/tensorboard/tensorboard.py --logdir='logs/'
欲得到tensrflow安装地址,在命令行输入以下指令:
pip show tensorflow
2.版本不一样,导致命令不一样
(1) tf.merge_all_summaries() 改为:summary_op = tf.summary.merge_all()
(2)tf.train.SummaryWriter 改为:tf.summary.FileWriter
(3)tf.scalar_summary 改为:tf.summary.scalar
(5)histogram_summary 改为:tf.summary.histogram
(6)将 biases_initializer=tf.zeros_initializer() 改为:biases_initializer=tf.zeros_initializer