我在测试安装的deep learning工具theano。按照官网Baby Steps - Algebra一步步输入。

>>> 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)

  import theano没有问题,定义x, y, z都没问题。最后一步f = function([x, y], z)的时候报错了。

错误是“nvcc fatal : Cannot find compiler 'cl.exe' in PATH” 说是缺少cl.exe,不知道这个文件做什么,用Google搜索了一下。看到有人说cl.exe在类似“C:\Program Files\Microsoft Visual Studio 10.0\VC\bin”的目录下。找了找果然有,把这个路径加入环境变量。

重新测试,原来那个报错不再有了,又出来一个新问题,不过好在不影响最后结果。。。

>>> x = T.dsc
>>> y = T.dsc
>>> z = x + y
>>> f = funct
DEBUG: nvcc STDOUT mod.cu
.................................
>>> f(2, 3)
array(5.0)

  

最新文章

  1. GetLastError()函数返回值及含义
  2. 高性能javascript学习笔记系列(4) -算法和流程控制
  3. Android GridView的使用
  4. Git的搭建和使用技巧完整精华版
  5. 2016年12月14日 星期三 --出埃及记 Exodus 21:9
  6. nyoj 76 超级台阶
  7. vim使用手册
  8. C 再识数组指针 指针数组的概念
  9. android 随手记 自定义广播通知栏
  10. Twenty Newsgroups Classification任务之二seq2sparse
  11. 服务器如何防ssh服务暴力破解??
  12. JS中创建自定义对象的方法
  13. AppiumDesktop用法介绍
  14. Android 开发笔记___FrameLayout
  15. CF 441E Valera and Number
  16. DaishaPocedureOfMine(代码)
  17. flask自动代码自动补全
  18. react组件父传子
  19. css position小结
  20. JavaScript权威指南--WEB浏览器中的javascript

热门文章

  1. 深入浅出设计模式——装饰模式(Decorator Pattern)
  2. 学习mongo系列(十)MongoDB 备份(mongodump)与恢复(mongorerstore) 监控(mongostat mongotop)
  3. js之oop <四>对象管理
  4. Ubuntu安装SSH服务
  5. 机器学习职位 & 面经
  6. 能源项目xml文件 -- springMVC-servlet.xml -- default-lazy-init
  7. CentOS中iptables防火墙 开放80端口方法
  8. python新技能get——看!源!码!
  9. 用JDBC访问MySQL
  10. Shell脚本的追踪与debug