未定义全局名称"col2im_6d_cython",CS231n [英] Global name 'col2im_6d_cython' is not defined, CS231n

查看:375
本文介绍了未定义全局名称"col2im_6d_cython",CS231n的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注CS231n,在执行分配2时遇到问题:ConvolutionalNetworks:global name 'col2im_6d_cython' is not defined.

I'm following CS231n and met a problem when doing assignment2: ConvolutionalNetworks: global name 'col2im_6d_cython' is not defined.

我认为问题是由于从使用cython的im2col_cython.pyx导入函数失败.

I think the problem was due to a failure in importing functions from im2col_cython.pyx, which used cython.

我已经安装了Xcode 7.3.1,如下所示,但是问题仍然没有解决.

I've installed Xcode 7.3.1, as shown below, but the problem was still not solved.

我正在Anaconda的Jupyter中运行ipynb文件.有一个相关的关于reddit的讨论,但不幸的是这里的解决方案适用于Windows,而不是Mac OS X.

I'm running the ipynb files in Jupyter from Anaconda. There is a related discussion on reddit, but unfortunately the solution here was for Windows, not Mac OS X.

谢谢您的时间.

推荐答案

我想将输入内容添加为注释,但没有足够的声誉点来添加注释.

I wanted to add my input as a comment but didn't have enough reputation points to do so.

当我关闭jupyter笔记本并再次打开它时,该问题已为我解决.收到导入错误后,我编译了cython扩展名,并且.so文件可用时,可能不得不重新启动它.

The issue was resolved for me when I closed the jupyter notebook and opened it again. I compiled the cython extension after I got the import error and probably have to relaunch it when the .so file is available.

这篇关于未定义全局名称"col2im_6d_cython",CS231n的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆