Sparsemax activation function
layer_sparsemax(object, axis = -1, ...)
object | Model or layer object |
---|---|
axis | Integer, axis along which the sparsemax normalization is applied. |
... | additional parameters to pass |
A tensor
The output shape is the same as the input shape. https://arxiv.org/abs/1602.02068