AttributeError Traceback (most recent call last)
in ()
4 for i in range (IMG_NUM):
5 t0 = time.time()
----> 6 dma.sendchannel.transfer(test_images[index[i]]) # 调用DMA将待预测图片数据传输到IP核
7 dma.recvchannel.transfer(out_buf[index[i]]) # 调用DMA从IP核获取RNN的推导结果
8 dma.sendchannel.wait() # 等待DMA发送完成
/usr/local/lib/python3.6/dist-packages/pynq/lib/dma.py in transfer(self, array)
122 raise RuntimeError(‘DMA channel not idle’)
123 if self._flush_before:
→ 124 array.flush()
125 self._mmio.write(self._offset + 0x18, array.physical_address)
126 self._mmio.write(self._offset + 0x28, array.nbytes)
/usr/local/lib/python3.6/dist-packages/pynq/xlnk.py in flush(self)
99
100 “”"
→ 101 if self.cacheable:
102 Xlnk.libxlnk.cma_flush_cache(self.pointer, self.physical_address, self.nbytes)
103
AttributeError: ‘ContiguousArray’ object has no attribute ‘cacheable’
I’m using jupyterbook for mnist handwritten digit recognition error, I’m using vivado 2018.3 and 2.4 like pynq image, I don’t know if it’s because of a version issue