def head(endpoints, embedding_dim, is_training):
endpoints['emb'] = endpoints['emb_raw'] = slim.fully_connected(
endpoints['model_output'], embedding_dim, activation_fn=None,
weights_initializer=tf.orthogonal_initializer(), scope='emb')
return endpoints
评论列表
文章目录