tips:keras 内部处理卷积层时,非人化操作filter shape造成初学者误导,无法理解output shape。实际上挺简单,keras依据实际input的channels_nums,将filter shape由(origin_width,origin_height)-->(origin_width,origin_height,channels_nums),进行卷积计算,并将各个不同的channel计算结果相加,得到最终结果。
from:python - Understanding the output shape of conv2d layer in keras - Stack Overflow