Docs
API
norm = nn.LayerNorm(3) t = Tensor.rand(2, 5, 3) * 2 + 1 console.log(t.mean().item(), t.std().item())
t = norm(t) console.log(t.mean().item(), t.std().item())