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

CPU implementation of the code. #3

Open
aboudjelal opened this issue Mar 18, 2019 · 6 comments
Open

CPU implementation of the code. #3

aboudjelal opened this issue Mar 18, 2019 · 6 comments

Comments

@aboudjelal
Copy link

Bonjour,

Is there any cpu implementation of the code ?
I read in your paper that you have used the ’astra gpu’ backend.

Regards

@adler-j
Copy link
Owner

adler-j commented Mar 18, 2019

The code should be runnable with a non-GPU version of Tensorflow and by selecting impl='astra_cpu' here

operator = odl.tomo.RayTransform(space, geometry)
Beware that it is probably extremely slow though.

@aboudjelal
Copy link
Author

Thank you for your answer,

when I execute the code : python3 partially_learned_gradient_descent_no_gradients.py .
I show this message,

2019-03-18 14:48:17.850394: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2594125000 Hz
2019-03-18 14:48:17.850835: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x1ce2690 executing computations on platform Host. Devices:
2019-03-18 14:48:17.850875: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): ,
Traceback (most recent call last):
File "partially_learned_gradient_descent_no_gradients.py", line 17, in
operator = odl.tomo.RayTransform(space, geometry)
File "/home/abdel/.local/lib/python3.6/site-packages/odl/tomo/operators/ray_trafo.py", line 383, in init
variant='forward', **kwargs)
File "/home/abdel/.local/lib/python3.6/site-packages/odl/tomo/operators/ray_trafo.py", line 118, in init
raise RuntimeError('no ray transform back-end available; '
RuntimeError: no ray transform back-end available; this requires 3rd party packages, please check the install docs

thanks

@adler-j
Copy link
Owner

adler-j commented Mar 18, 2019

@aboudjelal
Copy link
Author

no I didn't
i will try

@aboudjelal
Copy link
Author

I installed ASTRA but some error

@adler-j
Copy link
Owner

adler-j commented Mar 19, 2019

Could you elaborate a bit more on what error?

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