This is superseded in v0.3.0 in favour of indexed syntax, e.g. <act_fn[param = 0]> type.
Type-safe helper to specify parameters for activation functions.
All parameters must be named and match the formal arguments of the
corresponding {torch} activation function.
Examples
act_funs(softmax = args(dim = 2L))
#> <activation_spec[1]>
#> softmax
#> 2
