R/utils.R
get_optimizer_from_str.Rd
Returns the corresponding torch optimizer class given a string.
get_optimizer_from_str(opt)
Character. One of "sgd", "adam", or "rmsprop".
A function or NULL if the string is unrecognized.