RuntimeError: Given groups=1, weight of size [32, 32, 1, 1], expected input[1, 64, 28, 28] to have 3
报错:RuntimeError:Givengroups=1,weightofsize[32,32,1,1],expectedinput[1,64,28,28]tohave32channels,butgot64channelsinstead报此类错误是前后卷积层的通道不匹配,比如这里期望输入的通道是32,而上一层卷积传入的通道却是64,所以更改后面的输入通道即可