NLP - Sequence Models for NLP
Given the code below, what is the shape of the output tensor after the embedding layer?
import tensorflow as tf embedding = tf.keras.layers.Embedding(input_dim=5000, output_dim=16) input_seq = tf.constant([[1, 2, 3], [4, 5, 6]]) output = embedding(input_seq) print(output.shape)
