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

    const { activation = 'linear' } = attrs

    this.activation = activation
    this.activationFunc = activations[activation]

    this.description = `${this.activation}`

    // GPU setup
    if (this.gpu) {
      this.program = webgl2.compileProgram(activationProgramSources[this.activation])
    }
  }
Creates an Activation layer

@param {Object} [attrs] - layer config attributes
@param {String} [attrs.activation] - name of activation function