outputDim property

int get outputDim

Get the output dimension of the encoder.

Implementation

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