Closed groot-1313 closed 6 years ago
Hi, I also met this error, have you solved it?
Nope, no solution yet. If you do get around it, please post it here
I also got this error. It looks like tensorboard has received an API-breaking release since this code was first written. We need to install the older version of tensorboard to make it work.
sudo pip install 'tensorboard==1.0.0a6'
@lolz0r Thanks a lot for the info. I did not know that the tensorboard change their API. The USAGE.md page is now updated with the correct version.
Works! Thanks
I installed the 'tensorboard==1.0.0a6' version, but still getting the error. I am stacked on this. Thank you in advanced.
AttributeError: 'module' object has no attribute 'FileWriter'
Solved. Thanks.
This is a very basic tensorboard scalar log.
import numpy as np
import tensorflow as tf
a = np.arange(10)
x = tf.convert_to_tensor(a, dtype=tf.float32)
x_summ = tf.summary.scalar("X", x)
writer = tf.summary.FileWriter('/tmp/logdir')
writer.add_summary(x_summ)
But, I get an error in add_summary for value in summary.value: AttributeError: 'Tensor' object has no attribute 'value'
. Any solution for this?
try
writer.add_summary(x_summ).eval()
as per the stackoverflow answer
Same issue here. Not related with this library but the same problem with tensorboard. .eval() or reinstalling an older version of tensorboard have not solved my problem.
I get the same error as well in add_summary for value in summary.value: AttributeError: 'Tensor' object has no attribute 'value'. Any solution for this?
I saw there is some api change, probably to do with tf 2.0. This is working for me in tf 2.0:
train_writer = tf.summary.create_file_writer('./logs/1/train')
Thank you
I saw there is some api change, probably to do with tf 2.0. This is working for me in tf 2.0:
train_writer = tf.summary.create_file_writer('./logs/1/train')
This code works correctly!! Thank you!!
self.writer = tf.summary.create_file_writer(log_dir)
AttributeError: module 'tensorflow._api.v1.summary' has no attribute 'create_file_writer'
i'm using tf 1.13.1 can anyone help me?
@omizonly 'create_file_writer' is the api for tf 2.0 while 'FileWriter' is for tf 1.x. So you should either use 'tf.summary.FileWriter' instead.
I am running version_01, and I am facing problems with the summary writer.
So, I replaced it with the following line:
Upon doing so the program runs fine, until this line.
The error it throws is:
Can anybody please point out the change I need to make.