docs: @Override
      public int[] predict(INDArray d) {
          INDArray output = output(d, Layer.TrainingMode.TEST);
  
          // FIXME: int cast
          int[] ret = new int[(int) d.size(0)];
          if (d.isRowVectorOrScalar())
              ret[0] = Nd4j.getBlasWrapper().iamax(output);
          else {
              for (int i = 0; i < ret.length; i++)
                  ret[i] = Nd4j.getBlasWrapper().iamax(output.getRow(i));
          }
          return ret;
      }