Design
Specification
API
API Mapping
Migration Guide
FAQ
RELEASE NOTES
Gets the activation function.
name (str) – The name of the activation function.
prim_name (Union[str, None]) – The name of primitive. Default: None.
Function, the activation function.
Ascend GPU CPU
Ascend
GPU
CPU
Examples
>>> sigmoid = nn.get_activation('sigmoid') >>> print(sigmoid) Sigmoid<>