I’m a bit stuck Getting this error. Not sure if I’m even on the right track
TypeError 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 = pretrained_embedding_layer_test(sentence_indices)
24
25 # Propagate sentence_indices through your embedding layer
in pretrained_embedding_layer_test(target)
18
19 np.random.seed(1)
—> 20 embedding_layer = target(word_to_vec_map, word_to_index)
21
22 assert type(embedding_layer) == Embedding, “Wrong type”
TypeError: ‘Tensor’ object is not callable