FilesLast commitLast update
2 months ago
4 months ago
19 days ago
4 days ago
3 months ago
19 days ago
4 days ago
1 month ago
18 days ago
README

Softplus

English | 简体中文

Applicable Products

Product Support
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products ×
Atlas inference products √
Atlas training products √

Function

  • Operator function: an activation function used to map any real number to the positive number range.

  • Formula:

    y=log(1+ex)y = log(1 + e^x)

Parameters

Parameter name Input/Output Description Data type Data format
x Input Denotes the input of the softplus activation function, x in the formula. FLOAT, FLOAT16, BFLOAT16 ND
y Output Denotes the output of the softplus activation function, y in the formula. FLOAT, FLOAT16, BFLOAT16 ND

Constraints

The shapes and data types of the input x and the output y must be consistent.

Invocation Description

Invocation method Sample code Description
Graph-mode invocation test_geir_softplus.cpp Invokes the softplus operator by constructing the graph through the operator IR.