def logsum(l): x = l[0] for i in l[1:]: try: x += math.log1p(math.exp(i-x)) except: x += 0 return x
提 问题
写 面经
写 文章
微信 公众号
回到 顶部
没有帐户? 立即注册
已有帐号?立即登录