The path of Theano GPU configuration _it

Source: Internet
Author: User
Tags theano

Install Theano

Anaconda installation Theano available Conda Direct installation
Conda Install Theano

Configuration. Theanorc

Generate file sudo gedit ~/.theanorc (note that you do not omit a point in front of Theano) and copy the following, and then save, where cuda the contents of the item is the location installed by Cuda.
[Global]
Floatx=float32
Device=gpu
[Cuda]
Root=/usr/lib/nvidia-cuda-toolkit
[NVCC]
Flags=-d_force_inlines

Now that the installation and configuration of Theano is complete, enter the import Theano in Python, showing that the GPU device used indicates the success of the GPU configuration.

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.