sdlx188 2017-05-13 13:58 采纳率: 0%
浏览 2319

求大神指点!命令行运行python的调用brian包的SNN网络程序报错

求大神指点!用命令行运行python就一直报这个错,安装vcforpython也不行。。
E:\python\stdp-mnist-master>python "Diehl&Cook_spiking_MNIST.py"
C:\Python27\lib\site-packages\brian_no_units.py:4: UserWarning: Turning off units
warnings.warn("Turning off units")
time needed to load training set: 13.7289998531
time needed to load test set: 1.8220000267
brian.stateupdater: WARNING Using codegen CStateUpdater
brian.stateupdater: WARNING Using codegen CStateUpdater
create neuron group A
create recurrent connections
(400L, 3L) ./weights/../random/AeAi.npy
(160000L, 3L) ./weights/../random/AiAe.npy
create monitors for A
create connections between X and A
(313600L, 3L) ./weights/XeAe.npy
Looking for python27.dll
Looking for python27.dll
Looking for python27.dll
brian.experimental.codegen.stateupdaters: WARNING C compilation failed, falling back on Python.
Traceback (most recent call last):
File "Diehl&Cook_spiking_MNIST.py", line 455, in
b.run(single_example_time, report='text')
File "C:\Python27\lib\site-packages\brian\network.py", line 938, in run
report=report, report_period=report_period)
File "C:\Python27\lib\site-packages\brian\network.py", line 574, in run
self.update()
File "C:\Python27\lib\site-packages\brian\network.py", line 518, in update
f()
File "C:\Python27\lib\site-packages\brian\neurongroup.py", line 513, in update
self.LS.push(spikes) # Store spikes
File "C:\Python27\lib\site-packages\brian\utils\ccircular\ccircular.py", line 128, in push
def push(self, *args): return _ccircular.SpikeContainer_push(self, *args)
TypeError: Array of type 'long' required. Array of type 'long long' given

  • 写回答

3条回答

  • sdlx188 2017-05-13 13:53
    关注

    顶起,,,,求大神指点。。已经卡在这里快一个周了。。。

    评论

报告相同问题?

悬赏问题

  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用