Created
January 11, 2019 09:30
-
-
Save PatWie/c04f4d6a61ac201b8afa2c59fe9ba586 to your computer and use it in GitHub Desktop.
Trouble-Shooting TensorFlow
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
# get os info | |
uname -as | |
# get compiler info | |
g++ --version | |
# check python library versions | |
pip list 2>&1 | grep "proto\|numpy\|tensorflow" | |
# get TensorFlow information | |
cat <<EOF > /tmp/check_tf.py | |
import tensorflow as tf; | |
print("path = %s" % tf.__file__) | |
print("tf.GIT_VERSION = %s" % tf.GIT_VERSION) | |
print("tf.VERSION = %s" % tf.VERSION) | |
print("tf.COMPILER_VERSION = %s" % tf.GIT_VERSION) | |
with tf.Session() as sess: | |
print("Sanity check: %r" % sess.run(tf.constant([1,2,3])[:1])) | |
EOF | |
python /tmp/check_tf.py | |
# get cuda information when necessary | |
nvidia-smi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment