【问题标题】:Error while calculating dot product in Theano在 Theano 中计算点积时出错
【发布时间】:2014-09-08 09:10:39
【问题描述】:

我有以下用 Theano 编写的简单代码,在编译函数 f 时出现错误:

import theano.tensor as T
x = T.dmatrix('x')
w = T.dmatrix('w')
y = T.dot(x,w)

f = function([x,w],y)

ImportError: ('The following error happened while compiling the node', Dot22(x, w), '\n', 'dlopen(../.theano/compiledir_Darwin-13.3.0-x86_64-i386-64bit-i386-2.7.8-64/tmpTqQ0iS/b6135ddd19d268ad3182850548638ec3.so, 2): Library not loaded: libmkl_intel_lp64.dylib\n  Referenced from: ../.theano/compiledir_Darwin-13.3.0-x86_64-i386-64bit-i386-2.7.8-64/tmpTqQ0iS/b6135ddd19d268ad3182850548638ec3.so\n  Reason: image not found', '[Dot22(x, w)]')   

我这边出了什么问题?

【问题讨论】:

    标签: python numpy theano deep-learning


    【解决方案1】:

    从您收到的错误消息看来,theano 似乎找不到 mkl 库文件 libmkl_intel_lp64.dylib。

    你如何配置你的 theano?特别是blas library?

    请查看theano安装手册的this section

    【讨论】:

    • 谢谢!!如何检查 Blas 是否配置正确?
    • @Lanc 阅读了我链接到的安装手册。都在那里。
    猜你喜欢
    • 2016-03-22
    • 1970-01-01
    • 2017-10-21
    • 2017-02-10
    • 1970-01-01
    • 1970-01-01
    • 2014-08-19
    • 1970-01-01
    • 2011-06-07
    相关资源
    最近更新 更多