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

    const { size = 2 } = attrs
    this.size = size

    this.description = `size ${size}`

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

@param {Object} [attrs] - layer config attributes
@param {number} [attrs.size] - upsampling factor