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

will not run on GPU on COLAB #188

Open
astromcquinn opened this issue Dec 18, 2023 · 0 comments
Open

will not run on GPU on COLAB #188

astromcquinn opened this issue Dec 18, 2023 · 0 comments

Comments

@astromcquinn
Copy link

astromcquinn commented Dec 18, 2023

HI,

I'm having trouble running tensorflow-compression on the COLAB GPUs (which are the only GPUs I have access to). I have the same problem when I run the tensorflow-compression demo script https://www.tensorflow.org/tutorials/generative/data_compression

For example, when I run the provided shell script line to install
read MAJOR MINOR <<< "$(pip show tensorflow | perl -p -0777 -e 's/.Version: (\d+).(\d+)./\1 \2/sg')"
pip install "tensorflow-compression<$MAJOR.$(($MINOR+1))"

and then on the T4 GPU

import tensorflow as tf
import tensorflow_compression as tfc
print(tf.version.VERSION)
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))

It prints

2.14.1
Num GPUs Available: 0

I don't have this issue in other contexts where I'm not using tensorflow-compression.

Thank you so much,
Matt

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

1 participant