help !
Why do you pass x[i] instead of i when you index your layers?
tried with i at first but still having the same error
But you have to understand why you do things, not just go wild and do brute force programming. I have seen it many times and you aren’t setup for success or learning. My advice: read different sources about the transformer architecture for an hour or two or three. Then look at the exercise with new eyes.
you have right ,I didn’t understand this part of the code can you explain it more please
As I said: read different sources about the transformer architecture. There are also a couple of very good youtube videos on the topic as well. A part of learning is to collect different sources of knowledge.
thanks for the advice it was useful , Transformer model for language understanding | Text | TensorFlow
might be helpful for who encounter this error
Be sure not to copy paste, but that you really understand why you are doing specific steps.
Exactly what I need. Thank you!
Here’s the exact location of the code for those looking for the it in the documentation. Hope it helps!