FilesLast commitLast update
5 days ago
4 months ago
3 months ago
24 days ago
1 month ago
24 days ago
4 months ago
4 months ago
5 months ago
1 month ago
17 days ago
README

CeluV2

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: Activation function Celu (Continuously Differentiable Exponential Linear Units).
  • Formula:

CELU(x)=max⁡(0,x)+min⁡(0,α∗(exp⁡(x/α)−1))CELU(x) = \max(0,x) + \min(0, \alpha \ast (\exp(x/\alpha) - 1))

where:

  • x: Input tensor

  • alpha: Activation coefficient in the CELU formula, with the default value 1.0

Parameters

Parameter name Input/Output Description Data type Data format
x Input 'x' in the formula, the input tensor of the CELU activation function. Empty tensors are supported, non-contiguous tensors are supported, and 0 to 8 dimensions are supported. FLOAT16, FLOAT32, DT_BF16 ND
alpha Attribute Activation coefficient in the CELU formula, with the default value 1.0, and it cannot be 0. FLOAT -
y Output Output tensor of x computed by CELU, with the shape and dtype the same as the input x. Non-contiguous tensors are supported. FLOAT16, FLOAT32, DT_BF16 ND

Constraints

None.

Invocation Description

Invocation method Sample code Description
aclnn API test_aclnn_celu.cpp Calls the CeluV2 operator through the aclnnCelu&aclnnInplaceCelu API.