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

    const { dims = [] } = attrs

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

    this.dims = dims.map(dim => dim - 1)

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

@param {Object} [attrs] - layer config attributes
@param {number[]} [attrs.dims]