code: public void setStateViewArray(INDArray viewArray) {
          if(this.updaterStateViewArray == null){
              if(viewArray == null)
                  return; //No op - for example, SGD and NoOp updater - i.e., no stored state
              else {
                  throw new IllegalStateException("Attempting to set updater state view array with null value");
              }
          }
          if (this.updaterStateViewArray.length() != viewArray.length())
              throw new IllegalStateException("Invalid input: view arrays differ in length. " + "Expected length "
                              + this.updaterStateViewArray.length() + ", got length " + viewArray.length());
          this.updaterStateViewArray.assign(viewArray);
      }
docs: Set the view array. Note that this does an assign operation - the provided array is not stored internally.
  
  @param viewArray The new updater state