TensorFlow in Windows installation and mini-test

Source: Internet
Author: User
Try installing a set of TensorFlow under Windows, due to the need for work. Just before the machine has been installed anaconda, can be directly through the Anaconda Navigator.

  1. Launch Anaconda Navigator, go to Environment Settings page (environments)

2. Click the Create button under the root environment to create a new environment named TensorFlow (because the window version of TensorFlow does not support version 2.7 of Python, so choose the 3.5 version here)

3. After successful creation, search TensorFlow in TensorFlow environment, directly

4. After successful installation, open the Ipython in the TensorFlow environment

5. Enter the following test content in the startup Ipython:

Import TensorFlow as TFA = Tf.constant (3,name= ' input_a ') b = tf.constant (5,name= ' input_b ') c = tf.multiply (A,b,name= ' Compute ') Sess = tf. Session () x = Sess.run (c) print (x)

The results are as follows (the statements are explained in http://blog.51cto.com/abezoo/2047849, note the differences between the different versions):


TensorFlow in Windows installation and mini-test

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.