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

    const { padding = [[1, 1], [1, 1]], data_format = 'channels_last' } = attrs

    if (Array.isArray(padding)) {
      if (Array.isArray(padding[0])) {
        // [[int, int], [int, int]]
        this.padding = padding
      } else {
        // [int, int]
        this.padding = [[padding[0], padding[0]], [padding[1], padding[1]]]
      }
    } else {
      // int
      this.padding = [[padding, padding], [padding, padding]]
    }

    this.dataFormat = data_format

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

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

@param {Object} [attrs] - layer config attributes
@param {number|number[]|number[][]} [attrs.padding] - int, or tuple of 2 ints, or tuple of 2 tuples of 2 ints
@param {string} [attrs.data_format] - either 'channels_last' or 'channels_first'