def _embed_composite_feature(self, features, embedding_layers):
    'Embed a position feature.'
    embedding_list = []
    for i in range(len(embedding_layers)):
        embedding_list.append(embedding_layers[i](features[:, :, i]))
    embedding = tf.add_n(embedding_list)
    return embedding
Embed a position feature.
def _embed_composite_feature(self, features, embedding_layers):
    
    embedding_list = []
    for i in range(len(embedding_layers)):
        embedding_list.append(embedding_layers[i](features[:, :, i]))
    embedding = tf.add_n(embedding_list)
    return embedding