docs: public static INDArray[] dup(INDArray[] history) {
          INDArray[] dupHistory = new INDArray[history.length];
          for (int i = 0; i < history.length; i++) {
              dupHistory[i] = history[i].dup();
          }
          return dupHistory;
      }