What is wrong?

W2 A2 ex 5
How should I specify this output_dim?
Thank you
Traceback (most recent call last)
in
28
29
—> 30 Emojify_V2_test(Emojify_V2)

in Emojify_V2_test(target)
20
21 maxLen = 4
—> 22 model = target((maxLen,), word_to_vec_map, word_to_index)
23
24 assert type(model) == Functional, “Make sure you have correctly created Model instance which converts "sentence_indices" into "X"”

in Emojify_V2(input_shape, word_to_vec_map, word_to_index)
21
22 # Create the embedding layer pretrained with GloVe Vectors (≈1 line)
—> 23 embedding_layer = Embedding (sentence_indices)
24
25 # Propagate sentence_indices through your embedding layer

TypeError: init() missing 1 required positional argument: ‘output_dim’

It is given that:

Create the embedding layer pretrained with GloVe Vectors (≈1 line)

So, you have to use pretrained_embedding_layer. From the notebook:

  • The embedding_layer that is returned by pretrained_embedding_layer

I have decided to delete my question starting a new topic, as now there is a different kind of problem (error in test)