Failed to convert a NumPy array to a Tensor (Unsupported object type list).
An error occurred when training the model: Failed to convert a NumPy array to a Tensor (Unsupported object type list).
Check the reason:
Explain that the model does not support the list class.
When setting up the list, you need to compile it yourself: for my experimental problem, I only need to change the positions of val and key.
After replacement:
Run the code again to resolve the issue.
Everyone's problems may be different, but the solutions are similar.