Last active 1728856523

Revision c3a0a633a1d1d537a1fd12966195dee96884e2d6

Burn-readme-1.rs Raw
1fn gelu_custom<B: Backend, const D: usize>(x: Tensor<B, D>) -> Tensor<B, D> {
2 let x = x.clone() * ((x / SQRT_2).erf() + 1);
3 x / 2
4}