Configure Theano in Windows 8.1 x64
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Configure Theano in Windows 8.1 x64,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1919字,纯文字阅读大概需要3分钟。
内容图文
![Configure Theano in Windows 8.1 x64](/upload/InfoBanner/zyjiaocheng/1313/35273bef6ef94af2949c546d87ca6096.jpg)
Configure Theano in Windows 8.1
1. Install CUDA Toolkit:
CUDA 6.5: https://developer.nvidia.com/cuda-toolkit-65
Choose Windows 8.1 Desktop 64-bit EXE
2. Install Python and Theano related packages:
Install Anaconda: https://www.continuum.io/downloads#_windows
Choose Python 2.7 64-bit version.
3. Anaconda may not include MinGW package, install manually using Conda if nessesary:
Script: conda install -c https://conda.anaconda.org/anaconda mingw
4. Install Theano using PIP
Script: pip install theano
5. Check using test script:
import theano.tensor as T from theano import function x = T.dscalar(‘x‘) y = T.dscalar(‘y‘) z = x + y f = function([x,y],z) print f(2,3)
If error like ‘undefined reference to `__imp__Py_TrueStruct‘ occured, consider: https://github.com/Theano/Theano/issues/2867
Execute:
gendef python27.dll
dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libpython27.a --input-def python27.def
Copy libpython27.a to Anaconda\libs
Extra: configurarion file for Theano:
create .theanorc.txt file under C:\Users\UserName\
[blas] ldflags = [global] floatX = float32 device = gpu # By default the compiled files were being written to my local network drive. # Since I have limited space on this drive (on a school‘s network), # we can change the path to compile the files on the local machine. # You will have to create the directories and modify according to where you # want to install the files. # Uncomment if you want to change the default path to your own. # base_compiledir = /local-scratch/jer/theano/ [nvcc] fastmath = True flags = -LE:\Anaconda\libs compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin [gcc] cxxflags = -IE:\Anaconda\MinGW [cuda] # Set to where the cuda drivers are installed. # You might have to change this depending where your cuda driver/what version is installed.
原文:http://www.cnblogs.com/StandFast/p/5024036.html
内容总结
以上是互联网集市为您收集整理的Configure Theano in Windows 8.1 x64全部内容,希望文章能够帮你解决Configure Theano in Windows 8.1 x64所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。