use burn::{ module::Module, tensor::{ backend::Backend, activation::sigmoid, Tensor, }, }; #[derive(Module, Clone, Debug)] pub struct SILU {} impl SILU { pub fn new() -> Self { Self {} } pub fn forward(&self, x: Tensor) -> Tensor { x.clone() * sigmoid(x) } }