LayerNorm constructor
LayerNorm(
- int dim, {
- Float64List? gamma,
- Float64List? beta,
- 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);
}