在AN中计算点积时出错

2024-10-01 17:38:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我用ano编写了以下简单代码,在编译函数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)]')   

我这边出什么问题了?在


Tags: 函数代码so错误nottheanox86darwin

热门问题