Closed dc0107 closed 5 years ago
embedding = tf.get_variable('embedding', [self.config.vocab_size, self.config.embedding_dim]) embedding_inputs = tf.nn.embedding_lookup(embedding, self.input_x) embedding被get_variable初始化成一个随机的数据,怎么tf.nn.embedding_lookup(embedding, self.input_x)用输入的onehot值建立对应关系的
embedding = tf.get_variable('embedding', [self.config.vocab_size, self.config.embedding_dim]) embedding_inputs = tf.nn.embedding_lookup(embedding, self.input_x)
tf.nn.embedding_lookup(embedding, self.input_x)
embedding = tf.get_variable('embedding', [self.config.vocab_size, self.config.embedding_dim]) embedding_inputs = tf.nn.embedding_lookup(embedding, self.input_x)
embedding被get_variable初始化成一个随机的数据,怎么tf.nn.embedding_lookup(embedding, self.input_x)
用输入的onehot值建立对应关系的