Skip to content

Instantly share code, notes, and snippets.

@xinyazhang
Last active December 4, 2019 23:01
Show Gist options
  • Select an option

  • Save xinyazhang/016efb5bb30ea617c325e96ccf434f58 to your computer and use it in GitHub Desktop.

Select an option

Save xinyazhang/016efb5bb30ea617c325e96ccf434f58 to your computer and use it in GitHub Desktop.
Test successful installation of Tensorflow in One Line (Python3)
python3 -c 'import tensorflow as tf; c = tf.constant("Testing"); sess = tf.Session(); print(sess.run(c)); print(tf.test.gpu_device_name())'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment