Description Usage Arguments Details Value Examples
Sparsemax activation function
1 | layer_sparsemax(object, axis = -1, ...)
|
object |
Model or layer object |
axis |
Integer, axis along which the sparsemax normalization is applied. |
... |
additional parameters to pass |
The output shape is the same as the input shape. https://arxiv.org/abs/1602.02068
A tensor
1 2 3 4 5 6 7 | ## Not run:
model = keras_model_sequential() %>%
layer_conv_2d(filters = 10, kernel_size = c(3,3),input_shape = c(28,28,1),
activation = activation_gelu) %>%
layer_sparsemax()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.