'ListWrapper' object is not callable error

help !

2 Likes

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.

1 Like

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.

2 Likes

thanks for the advice it was useful , Transformer model for language understanding  |  Text  |  TensorFlow
might be helpful for who encounter this error

2 Likes

Be sure not to copy paste, but that you really understand why you are doing specific steps.

1 Like

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!