encoderOutputDim property

int get encoderOutputDim

Compute the encoder's output dimension.

Implementation

int get encoderOutputDim {
  int d = encoderEmbedDim;
  for (int i = 0; i < encoderLayer.length - 1; i++) {
    d *= 2;
  }
  return d;
}