安装python的库theano 出现下面错误提示?python的字典为保证冲突探测链表连续

时间:2018-01-16 23:00:02   浏览:次   点击:次   作者:   来源:   立即下载

DLL load failed :找不到指定的程序。求大神

见官网安装教程Installation of Theano on Windows 最底下①句话:

Note

If you get a DLL load failed error message, it typically means that a required DLL was not found in the PATH. If it happens only when you are using OpenBLAS, it means it is either libopenblas.dll itself or one of its dependencies. In the case where it is a dependency, you can use theDependency Walker utility to figure out which one.

cpython的dict基于①个结构体,这个结构体里存的有这个entry的hash值以及键和值;

这个entry有③种状态,分别是active/dummy/unused状态,没有被使用的时候是unused态,正在被使用的是active态,曾经被使用了但被删除了的是dummy态。有dummy态存在是因为:

假设已有以下探测链a- > b- > c,如果删除了b(这里指把b置为unused),那么,再去寻找c的时间就会没法找到c存在(因为必须检测到链中有unused态就必须退出,否则永远在探测下①个)。

把entry置为dummy态并不是value=None,而是把键设为dummy(其实就是个标记状态),同时把值设为NULL,而且,关于内存释放的话,每个entry都有①个PyObject_Head头,这里面有引用计数,①旦引用计数为⓪ · 那么就会释放内存。这①点不用担心。

收起

相关推荐

相关应用

平均评分 0人
  • 5星
  • 4星
  • 3星
  • 2星
  • 1星
用户评分:
发表评论

评论

  • 暂无评论信息