MindSpore Python API
MindArmour Python API
MindSpore Hub Python API
MindSpore Serving Python API
MindQuantum Python API
Gets the activation function.
name (str) – The name of the activation function.
Function, the activation function.
Ascend GPU CPU
Ascend
GPU
CPU
Examples
>>> sigmoid = nn.get_activation('sigmoid')