MindSpore Python API
MindSpore C++ 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') >>> print(sigmoid) Sigmoid<>