awslabs/gluonts

`softplus` can return negative values

オープン

#1,894 opened on 2022/02/17

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Python (753 件のフォーク)batch import
buggood first issuemxnet

Repository metrics

Stars
 (3,888 個のスター)
PR merge metrics
 (平均マージ 26d 17h) (30d で 4 merged PRs)

説明

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

コントリビューターガイド