word2gm icon indicating copy to clipboard operation
word2gm copied to clipboard

'module' object has no attribute 'SummaryWriter'

Open vinayakumarr opened this issue 5 years ago • 0 comments

The code (w2gm_text8_2s.visualize_embeddings()) in Analyze Text8 Model.ipynb generates the following error.

376                 saver = tf.train.Saver()
377                 saver.save(session, os.path.join(emb_logdir, "model.ckpt"), 0)
378                 summary_writer = tf.summary.FileWriter(emb_logdir, session.g)
379                 config = projector.ProjectorConfig()
380                 embedding = config.embeddings.add()

Actually, the original code contains the tf.train.SummaryWriter. When I ran this, I am getting the same error. So I have changed into FileWriter. For this also, the program outputs the same error.

vinayakumarr avatar Jan 28 '20 21:01 vinayakumarr