def mpjpe_criterion(pred, gt, has_3d_joints, criterion_pose3d):
    """ 
    mPJPE loss of self define criterion
    """
    pred, gt = filter_3d_joints(pred, gt, has_3d_joints)
    error = paddle.sqrt(criterion_pose3d(pred, gt)).mean()
    return error
 
    mPJPE loss of self define criterion
    
ppdet/modeling/losses/pose3d_loss.py