Custom Activation Function
Define a custom activation function called Swish: .
- Implement it as a PyTorch
nn.Module. - Train a small MLP on random data with it.
- Compare with ReLU performance (loss curves).
Define a custom activation function called Swish: .
nn.Module.