Skip to main content

Posts

Compile TensorFlow - Hello World

Previous tutorial was shared with you on how to setup tensorflow into your machine or PC. Now let us start test a simple tensorflow code to compile on our setup environment. 1. Open Comand Prompt on your PC. 2. Key in to conda info --envs verify tensorflow was installed on your PC. 3. Activated tensorflow , then let try to import tensorflow lib by key in import tensorflow as tf. 4. Now go to Anaconda> Sypder  editor , then key in the hello world code as below: 5. Then click to run the program, done! ** Note: You also can direct compile from Command prompt: python >>> import tensorflow as tf >>> hello = tf.constant('Hello, Tensorflow') >>> sess = tf.Session() >>> print(sess.run(hello))

Setup Tensorflow Environment on Windows OS

TensorFlow can be installed on native Ubuntu and macOS based on native pip, Anaconda, virtualenv and Docker. For Windows operating systems, native pip or Anaconda can be used. Below has the tutorial share with you on how I setup Tensorflow on My Computer which running on 64bit Windows 10 OS, intel i7 9750H CPU,   NVDia GTX 1650 with CUBA cores 1024 Graphic Module. Part 1: Install Anaconda 1. Download