Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Code to New Tensorflow version #34

Open
jennahorrall opened this issue Jul 8, 2019 · 2 comments
Open

Updating Code to New Tensorflow version #34

jennahorrall opened this issue Jul 8, 2019 · 2 comments

Comments

@jennahorrall
Copy link

Hi, I tried running avg_runner.py and I'm getting quite a few function deprecation errors. For example, the summary writer function here is getting an error:

File "avg_runner.py", line 191, in <module>
main()

File "avg_runner.py", line 183, in main
runner = AVGRunner(num_steps, load_path, num_test_rec)
File "avg_runner.py", line 32, in init
self.summary_writer = tf.train.SummaryWriter(c.SUMMARY_SAVE_DIR, graph=self.sess.graph)
AttributeError: 'module' object has no attribute 'SummaryWriter'

I'm using version 1.13.1 of tensorflow, but I noticed the code is only updated for version 0.12. I tried to install version 0.12 of tensorflow but it looks like the older versions are not available anymore. Are there any updated versions of this code using a newer version of tensorflow?

@jian3xiao
Copy link

@jennahorrall I use version 1.6.0 of tensorflow
tf.train.SummaryWriter -> tf.summary.FileWriter
use like this : tf.summary.scalar (tf.summary.xxx)
tf.pack -> tf.stack

@MadcowD
Copy link

MadcowD commented Oct 20, 2019

On 1.14 make sure to swtich the order of the concat arguments in the code :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants