- Python出现
bound method
。
方法没加()
PermissionError: [Errno 13] Permission denied: '...\data\\input\\dev.csv'
dev.csv这个文件打开了
- RunTime Error: RuntimeError: Given groups=1, weight of size [32, 1, 7, 7], expected input [1, 4, 110, 84] to have 1 channels, but got 4 channels instead
模型权值的尺寸为[32, 1, 7, 7]
这个尺寸表示的意思是[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
,但输入进来的是4
.
解决办法:该表网络的定义变成[32, 4, 7, 7]
或者对输入特征图进行处理变成[1, 1, 110, 84]