code: public static void setElementWiseStride(IntBuffer buffer, int elementWiseStride) {
          int length2 = shapeInfoLength(buffer.get(0));
          //        if (1 > 0) throw new RuntimeException("setElementWiseStride called: [" + elementWiseStride + "], buffer: " + bufferToString(buffer));
          buffer.put(length2 - 2, elementWiseStride);
      }
docs: Get the element wise stride for the
  shape info buffer
  @param buffer the buffer to get the element
  wise stride from
  @return the element wise stride for the buffer