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

About the version of tensorflow #13

Open
zytx121 opened this issue Nov 29, 2020 · 2 comments
Open

About the version of tensorflow #13

zytx121 opened this issue Nov 29, 2020 · 2 comments

Comments

@zytx121
Copy link

zytx121 commented Nov 29, 2020

I try to run grid/demo.py with tf=1.15.0 but something wrong.

image

@tomsmoker
Copy link
Contributor

tomsmoker commented Nov 30, 2020

Hi,

Using python=3.7.0 and tensorflow=1.15.0 I'm able to successfully run `datasets/grid/demo.py' with no errors. Which version of python are you using? And have you run the makefile?

Also, if you want to run it with more recent versions of these packages there are a few workarounds. For example, by adding the following lines to `.../venv/lib/python3.8/site-packages/tensorlog-1.2.5-py3.8.egg/tensorlog/tensorflowxcomp.py' I'm able to run the above demo file using tensorflow=2.3.1 and python=3.8.2:

`import tensorflow.compat.v1 as tf'

`tf.disable_v2_behavior()'

  • tom

@zytx121
Copy link
Author

zytx121 commented Dec 7, 2020

@tomsmoker Thx! It works!

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

2 participants