ReLU is cheap but has a hard kink at zero. The Swish paper (Ramachandran, Zoph & Le, 2017) found by automated search that x * sigmoid(x) often beats ReLU on deep networks, because the input gates itself smoothly.
Implement swish(x, beta), which returns x * sigmoid(beta * x).
beta = 1 this is the standard Swish (also called SiLU).The sigmoid is 1 / (1 + exp(-beta * x)); multiply it by x.
No results yet
Run your code to check it against the examples, or submit to run every test.