Layer factory function to create an activation layer. Activation functions
can be used directly in CNTK, so there is no difference between y = relu(x)
and y = Activation(relu)(x)
. This layer is useful if one wants to configure
the activation function with default <- options
, or when its invocation
should be named.
Activation(activation = activation_identity, name = "")
activation | (Function) - optional activation Function (defaults to
|
---|---|
name | string (optional) the name of the Function instance in the network the network |
A function that accepts one argument and applies the operation to it
#> Composite(x: Sequence[tensor]) -> Sequence[tensor]#> Composite(x: Sequence[tensor]) -> Sequence[tensor]#> Dense(x: Sequence[tensor]) -> Sequence[tensor]