1

我有以下用 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)]')   

我这边出了什么问题?

4

1 回答 1

3

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

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

请查看theano 安装手册的这一部分

于 2014-07-17T14:02:55.163 回答