Last active
October 2, 2020 10:36
-
-
Save slitayem/c0ef2c46231dd1e3b92fb2aec95631c0 to your computer and use it in GitHub Desktop.
Get tensorflow package version in the latest available GPU Docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
docker run -dit --rm --name test tensorflow/tensorflow:latest-gpu-py3-jupyter | |
TF_VERSION=`docker exec -it test bash -c "pip freeze | grep tensorflow-gpu | cut -d'=' -f3"` | |
TF_VERSION=`echo $TF_VERSION | tr -d '\r'` | |
docker stop test | |
echo "Tensorflow version: "${TF_VERSION} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment