pub fn apply_activation(x: &Tensor, name: &str) -> Result<Tensor>Expand description
Apply activation function matching Hugging Face hidden_act.
ยงErrors
Returns ModelError::UnsupportedArchitecture for unknown activation names.
pub fn apply_activation(x: &Tensor, name: &str) -> Result<Tensor>Apply activation function matching Hugging Face hidden_act.
Returns ModelError::UnsupportedArchitecture for unknown activation names.