constructor(attrs = {}) {
    super(attrs)
    this.layerClass = 'Embedding'

    const { input_dim = 1, output_dim = 1, input_length = 0, mask_zero = false } = attrs

    this.description = `output dimensions: ${output_dim}`

    this.inputDim = input_dim
    this.outputDim = output_dim
    this.inputLength = input_length

    // mask_zero will be important for subsequent layers
    this.maskZero = mask_zero

    // Layer weights specification
    this.params = ['embeddings']

    // GPU setup
    if (this.gpu) {
      this.program = webgl2.compileProgram(programSource)
    }
  }
Creates a Embedding layer

@param {Object} [attrs] - layer config attributes