adem_loss.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:ADEM 作者: Yoctol 项目源码 文件源码
def tf_static_adem_l1_loss(human_score, model_score, M, N):
    hs_shape = human_score.get_shape().as_list()
    ms_shape = model_score.get_shape().as_list()
    with tf.control_dependencies(
        [tf.assert_equal(len(hs_shape), 1, message='score should be 1D.'),
         tf.assert_equal(len(ms_shape), 1, message='score should be 1D.'),
         tf.assert_equal(hs_shape, ms_shape,
                         message='human and model scores should have an equal amount.')]):
        return compute_adem_l1_loss(human_score, model_score, M, N)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号