bash-3.2$ activate tf3
Error: activate must be sourced. Run 'source activate envname'
instead of 'activate envname'.
bash-3.2$ tensorboard--logdir=http://localhost:8888/notebooks/anaconda/Anaconda-Navigator.app/Contents/jupyter_tfbook/tensor3.ipynb
Starting TensorBoard b'41'on port 6006(You can navigatetohttp://172.xx.xx.xx:6006)
bash: syntax error near unexpected token `('
bash-3.2$
1# -*- coding: utf-8 -*-2import tensorflow as tf
34# 足し算5with tf.name_scope('add_scope'):6 x = tf.constant(1, name='x')7 y = tf.constant(2, name='y')8 z = x + y
910# 上の結果に掛け算11with tf.name_scope('multiply_scope'):12 zz = y * z
1314with tf.Session()as sess:15with tf.name_scope('init_scope'):16# WARNING:tensorflow:From hoge.py initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.17# Instructions for updating:18# Use `tf.global_variables_initializer` instead.19#sess.run(tf.initialize_all_variables())20 sess.run(tf.global_variables_initializer())21 sess.run(zz)2223# グラフを書こう24# AttributeError: module 'tensorflow.python.training.training' has no attribute 'SummaryWriter' #816425# https://github.com/tensorflow/tensorflow/issues/816426#summary_writer = tf.train.SummaryWriter('data', graph=sess.graph)27 summary_writer = tf.summary.FileWriter('c:\\temp\\tf_log', graph=sess.graph)2829# http://stackoverflow.com/questions/41066244/tensorflow-module-object-has-no-attribute-scalar-summary30#tf.scalar_summary('one_plus_one_summary', zz)31 tf.summary.scalar('one_plus_one_summary', zz)3233print("done.")
1C:\Windows\system32>activate tf3
2(tf3) C:\Windows\system32>tensorboard --logdir=c:/temp/tf_log
3Starting TensorBoard b'41' on port 6006
4(You can navigate to http://172.xx.xx.xx:6006)
5ERROR:tensorflow:Unable to get size of ~
6など複数行のエラー、警告が表示されるがとりあえず無視
7WARNING:tensorflow:Found more than one metagraph event per run. Overwriting the
8metagraph with the newest event.
回答者様の
(tf3)>tensorboard --logdir=c:\temp
Starting TensorBoard b'41' on port 6006
(You can navigate to http://172.xx.xx.xx:6006)
:(以下略)
をjupyter上およびMacのターミナルで実行したのですが、コマンドエラー表示が出ました。anacondaのjupyterで作成したファイルをTensorboardで開く以上、jupyter上のターミナルでコマンドを実行しなければならないのです。今のところそれがわかりません。
Tensorboardはjupyterで開けるはずなのですが、回答者様はTensorboardはanaconda環境のjupyterで開いておられるのでしょうか?
別途質問を立てるつもりです。
追記ぢていただいたコマンドを入力しましたところ以下のコマンドエラーが出てきてしまいました
bash-3.2$ C:\Windows\system32>activate tf3
bash: C:Windowssystem32: command not found
bash-3.2$ (tf3) C:\Windows\system32>tensorboard --logdir=c:/temp/tf_log
bash: syntax error near unexpected token `C:\Windows\system32'
bash-3.2$ Starting TensorBoard b'41' on port 6006
bash: Starting: command not found
bash-3.2$ (You can navigate to http://172.xx.xx.xx:6006)
bash: You: command not found
ちなみに開いたjupyter上のターミナル画像は質問文に追記してあります。
改善点があればよろしくお願いします
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/10 13:17
2017/03/11 07:47
2017/03/14 13:12
2017/03/14 14:56 編集
2017/03/14 15:47
2017/03/15 01:04
2017/03/15 10:34
2017/03/15 11:12
2017/03/15 11:15
2017/03/15 13:52
2017/03/16 01:38