Could not interpret initializer identifier: 120

Why is this happening? i have my code for create model function, and it keep tells me that " Could not interpret initializer identifier: 120"

Hello @Farrel_Faiz_Baskara ,

Send me your notebook via dm such that I can check where it went wrong. By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then we can discuss the issues here, under the topic you created.

With regards,
Nilosree Sengupta

i have sent you my notebook, kindly check it

Hello @Farrel_Faiz_Baskara ,

I have seen your notebook.
In the # GRADED FUNCTION: create_model,
While defining the parameters of model, in the part of Embedding layer, you have directly written - maxlen.

The embedding layer is the first layer of the model which takes several parameters out of which the input_length parameter specifies the length of the input sequences to the model.

maxlen is the variable that stores the maximum length of the input sequence.

So you need to set it like this :
input_length = maxlen

With regards,
Nilosree Sengupta

i see, thankyou very much

Hello @Farrel_Faiz_Baskara ,

You’re welcome!!
Happy learning!!

With regards,
Nilosree Sengupta