LayerNorm constructor

LayerNorm(
  1. int dim, {
  2. Float64List? gamma,
  3. Float64List? beta,
  4. double eps = 1e-5,
})

Implementation

LayerNorm(this.dim, {Float64List? gamma, Float64List? beta, this.eps = 1e-5})
    : gamma = gamma ?? Float64List.fromList(List.filled(dim, 1.0)),
      beta = beta ?? Float64List(dim) {
  assert(dim > 0);
}