ValueError: Error when checking target: expected denseclassify to have 3 dimensions, but got array w

ValueError: Error when checking target: expected denseclassify to have 3 dimensions, but got array with shape (8, 5)。

使用keras搭建bilstm+selfattention的模型,进行多文本分类ValueError: Error when checking target: expected denseclassify to have 3 dimensions, but got array w_第1张图片

发现出现ValueError的错误,但检查发现denseclassify层的输入根据summary结果就是3dim的,希望有人帮忙解答一下。

 

 

 

 

你可能感兴趣的:(ValueError: Error when checking target: expected denseclassify to have 3 dimensions, but got array w)