powered by
Example: "relu" => `tensorflow::tf$nn$relu`.
get_activation(activation_string)
String name of the activation function.
A function corresponding to the activation function. If activation_string is NA, empty, or "linear", this will return NA. If activation_string is not a string, it will return activation_string.
activation_string
# NOT RUN { get_activation("gelu") # }
Run the code above in your browser using DataLab