layer= swishLayer('Name',Name)creates a swish layer and sets the optionalNameproperty using a name-value argument. For example,swishLayer('Name','swish1')creates a swish layer with the name'swish1'.
A swish activation layer applies the swish function on the layer inputs.The swish operation is given by. The swish layer does not change the size of its input.
Activation layers such as swish layers improve the training accuracy for some applications and usually follow convolution and normalization layers. Other nonlinear activation layers perform different operations. For a list of activation layers, seeActivation Layers.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.