TensorFlow 面试题与答案
Question: Explain the purpose of the tf.keras.layers.Embedding layer.Answer: The Embedding layer is used for word embeddings in natural language processing tasks. It maps integer indices (representing words) to dense vectors, allowing the model to learn semantic relationships between words.Example: embedding_layer = tf.keras.layers.Embedding(input_dim=vocabulary_size, output_dim=embedding_dimension) |
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容: