昇腾社区首页
中文
注册

void SetThreshold(float threshold) noexcept

函数功能

传入阈值。

函数原型

void SetThreshold(float threshold) noexcept;

约束说明

当前仅softplus函数使用,当输入数据大于等于此值时恢复为线性函数。

参数说明

参数名

输入/输出

说明

thresholdcale

输入

输入的阈值,类型为float。

返回值说明