keras多输入模型

当模型有两个输入,且形状不同时,出现了以下报错,ValueError: All input arrays (x) should have the same number of samples. Got array shapes: [(3840, 8, 9, 4), (2400, 128, 32, 1)]

你的batch_size不一样([(3840, 8, 9, 4), (2400, 128, 32, 1)]),要么都是3840,要么都是2400,第一维的batch_size要一致才行

两个输入的大小不一致造成的