A target array with shape (6682, 2) was passed for an output of shape (None, 15, 2) while using as loss `categorical_crossentropy`. This loss expects targets to have the same shape as the output. #765
ValueError: A target array with shape (6682, 2) was passed for an output of shape (None, 15, 2) while using as loss categorical_crossentropy. This loss expects targets to have the same shape as the output.
I try to build a BiLSTM network. It returns a
The structure is below:
below is dimension I print![image](https://user-images.githubusercontent.com/93702449/181780200-0a8fcbe0-23fb-479a-932c-5c3cd1a289a0.png)