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

    const { size = [2, 2], data_format = 'channels_last' } = attrs

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

    this.dataFormat = data_format

    this.description = `size ${this.size.join('x')}`

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

@param {Object} [attrs] - layer config attributes
@param {number|number[]} [attrs.size] - upsampling factor, int or tuple of int (length 2)
@param {string} [attrs.data_format] - either 'channels_last' or 'channels_first'