Hello everyone,
I’ve been running an implementation of Transformers with keras functional API and I got an issue on this line:
attention = Attention()([query, value, key], mask=[query._keras_mask, value._keras_mask])
It triggers the following error:
TypeError: Cannot convert a symbolic Keras input/output to a numpy array.
After a look at the documentation, it seems that the passed tensors are of correct format. What’s the problem with this?
Thanks in advance,
Kevin