awslabs/gluonts

`softplus` can return negative values

开放

#1,894 创建于 2022年2月17日

 (1 条评论) (0 个反应) (0 位负责人)Python (753 个派生)batch import
buggood first issuemxnet

仓库指标

星标
 (3,888 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

See also fixes needed in #1893 because of this, and issue referenced therein.

To Reproduce

import mxnet as mx
from gluonts.mx.distribution.distribution import softplus
softplus(mx.nd, mx.nd.array([-20]))

Error message or code output

[-1.9073486e-06]
<NDArray 1 @cpu(0)>

Environment

  • Operating system: macos
  • Python version: 3.7.8
  • GluonTS version: a75acdb
  • MXNet version: 1.8.0

贡献者指南