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

    const { padding = [1, 1] } = attrs

    if (Array.isArray(padding)) {
      this.padding = padding
    } else {
      this.padding = [padding, padding]
    }

    this.description = `${JSON.stringify(this.padding)}`

    // GPU setup
    if (this.gpu) {
      this.mapInputProgram = webgl2.compileProgram(mapInputProgramSource)
    }
  }
Creates a ZeroPadding1D layer

@param {Object} [attrs] - layer config attributes
@param {number|number[]} [attrs.padding] - int or tuple of int (length 2)