benathi / word2gm

Word to Gaussian Mixture Model
BSD 3-Clause "New" or "Revised" License
283 stars 73 forks source link

'module' object has no attribute 'SummaryWriter' #10

Open vinayakumarr opened 4 years ago

vinayakumarr commented 4 years ago

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.