sariii
sariii

Reputation: 2150

summary.filewriter in tensorflow does not work

Edit for the ones that mark this question as already being answered

pleaseeee read my question carefully, I am aware of the tensorflow 1 , and the changes it has, I said I am using this right now in my code: train_writer = tf.train.summary.FileWriter(summaries_dir + '/train') but still getting error that train_writer = tf.train.summary.FileWriter(summaries_dir + '/train') AttributeError: module 'tensorflow.python.training.training' has no attribute 'summary

Sooo please dont mark this question as the question that has already being answered

At first I had this piece of code:

train_writer = tf.train.summarywriter(summaries_dir + '/train')

it raises error that summarywriter....

so I changed that to this

train_writer = tf.train.summary.FileWriter(summaries_dir + '/train')

but it still raises this errortrain_writer = tf.train.summary.FileWriter(summaries_dir + '/train') AttributeError: module 'tensorflow.python.training.training' has no attribute 'summary'

may someone help me please,

Upvotes: 0

Views: 4734

Answers (1)

David Parks
David Parks

Reputation: 32081

In TF 1.x: tf.summary.FileWriter

Documentation here: https://www.tensorflow.org/api_docs/python/tf/summary/FileWriter

Note that there was a change of package names between older tensorflow versions and 1.x.

Upvotes: 1

Related Questions