调试中的一些Python错误
生活随笔
收集整理的這篇文章主要介紹了
调试中的一些Python错误
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
方法沒加()
dev.csv這個(gè)文件打開了
模型權(quán)值的尺寸為[32, 1, 7, 7]這個(gè)尺寸表示的意思是[output channel, input channel, height of kernel, width of kernel],但是輸入的特征圖的尺寸是[1, 4, 110, 84],即[batch_size, input channel, height of feature map, width of feature map]。期望的input channel是1,但輸入進(jìn)來的是4.
解決辦法:該表網(wǎng)絡(luò)的定義變成 [32, 4, 7, 7]或者對(duì)輸入特征圖進(jìn)行處理變成[1, 1, 110, 84]
總結(jié)
以上是生活随笔為你收集整理的调试中的一些Python错误的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Colaboratory下载Kaggle
- 下一篇: websocket python爬虫_p