setWeights(weightsArr) {
    super.setWeights(weightsArr)
    if (!this.use_bias) {
      this.weights['bias'] = new Tensor([], [this.units])
      if (this.gpu) {
        this.weights['bias'].createGLTexture({ type: '2d', format: 'float' })
      }
    }
  }
Method for setting layer weights. Extends `super` method. Create empty bias if this.use_bias is false.

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