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

AttributeError: 'module' object has no attribute 'tensorflow' #1084

Closed
haimiaozh opened this issue Aug 3, 2017 · 3 comments
Closed

AttributeError: 'module' object has no attribute 'tensorflow' #1084

haimiaozh opened this issue Aug 3, 2017 · 3 comments

Comments

@haimiaozh
Copy link

Traceback (most recent call last):
File "learned_chambolle_pock.py", line 35, in
odl_op_layer = odl.contrib.tensorflow.as_tensorflow_layer(operator,'RayTransform')
AttributeError: 'module' object has no attribute 'tensorflow'

The above error appears, but I can not find the "odl.contrib.tensorflow" module in the odl/contrib folder.

@adler-j
Copy link
Member

adler-j commented Aug 3, 2017

The tensorflow branch was recently updated and I just managed to update https://github.com/adler-j/learned_primal_dual to work with this version, it should work now if you update "Learned_primal_dual".

@haimiaozh
Copy link
Author

Thank you very much for the patients. I have already fixed up the problems. I should mention that if I directly install the odl package which with tensorflow support by the command "$ pip install https://github.com/adler-j/odl/archive/tensorflow_support.zip", it will be not correctly installed in my local lib. And I can not find the tensorflow support utils. The solution is:
1)download:odl-tensorflow_support.zip
2)python setup.py install
3) update the numpy to newest version
4) finished the installation.
If I done it this way, all things go well.
I hope the above may be helpful to the beginner.

@adler-j
Copy link
Member

adler-j commented Aug 4, 2017

Interesting with the bug for you, it worked for me. Perhaps it's platform dependent. Good luck in using the code and please don't hesitate to ask more questions!

Thank you very much for providing the solution!

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

No branches or pull requests

2 participants