def head(endpoints, embedding_dim, is_training):
endpoints['emb_raw'] = slim.fully_connected(
endpoints['model_output'], embedding_dim, activation_fn=None,
weights_initializer=tf.orthogonal_initializer(), scope='emb')
endpoints['emb'] = tf.nn.l2_normalize(endpoints['emb_raw'], -1)
return endpoints
direct_normalize.py 文件源码
python
阅读 31
收藏 0
点赞 0
评论 0
评论列表
文章目录