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

requirement:tensorflow-cpu #1030

Open
nibingwei123 opened this issue Oct 15, 2024 · 1 comment
Open

requirement:tensorflow-cpu #1030

nibingwei123 opened this issue Oct 15, 2024 · 1 comment

Comments

@nibingwei123
Copy link

why the cuda and cudnn installed and the requirements file in docker install tensorflow-cpu version???

@Bhazantri
Copy link

modify the requirements.txt to explicitly install the GPU-compatible version of TensorFlow by specifying tensorflow-gpu or tensorflow==2.x+nv instead of tensorflow-cpu. Ensure your Dockerfile uses a GPU-enabled base image, such as nvidia/cuda:12.2.0-cudnn8-runtime-ubuntu20.04, and install TensorFlow accordingly. Additionally, use the --gpus all flag when running the container to enable GPU support, and verify that TensorFlow detects the GPU with tf.config.list_physical_devices('GPU').

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