setWeights(weightsArr, createGLTexture = true) {
    this.params.forEach((p, i) => {
      this.weights[p] = weightsArr[i]

      if (this.gpu && createGLTexture) {
        this.weights[p].createGLTexture({ type: '2d', format: 'float' })
      }
    })
  }
Set layer weights

@param {Tensor[]} weightsArr - array of weights which are instances of Tensor
@param {boolean} createGLTexture