setWeights(weightsArr) {
    this.forwardLayer.setWeights(weightsArr.slice(0, weightsArr.length / 2))
    this.backwardLayer.setWeights(weightsArr.slice(weightsArr.length / 2))
  }
Method for setting layer weights - passes weights to the wrapped layer

Here, the weights array is concatenated from the forward layer and the backward layer

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