LayerNorm constructor

LayerNorm(
  1. int dim, {
  2. double epsilon = 1e-5,
})

Implementation

LayerNorm(int dim, {this.epsilon = 1e-5})
    // Initialize gamma to 1 and beta to 0
    : gamma = Value(1.0),
      beta = Value(0.0);