【发布时间】:2023-03-10 04:25:01
【问题描述】:
我收到以下错误:
ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 6 arrays but instead got the following list of 3 arrays: [array([[ 0, 0, 0, ..., 18, 12, 1],
[ 0, 0, 0, ..., 18, 11, 1],
[ 0, 0, 0, ..., 18, 9, 1],
...,
[ 0, 0, 0, ..., 18, 15, 1],
[ 0, 0, 0, ..., 18, 9, ...
在我的 keras 模型中。
我认为模型弄错了什么?
当我向模型提供输入时会发生这种情况。相同的输入在另一个程序中效果很好。
【问题讨论】:
标签: numpy machine-learning tensorflow deep-learning keras