code: public static SparseTensor fromUnorderedKeyValuesNoCopy(int[] dimensionNumbers,
        int[] dimensionSizes, long[] keyNums, double[] values) {
      ArrayUtils.sortKeyValuePairs(keyNums, values, 0, keyNums.length);
      return new SparseTensor(dimensionNumbers, dimensionSizes, keyNums, values);
    }
docs: Same as {@link #fromUnorderedKeyValues}, except that neither
  input array is copied. These arrays must not be modified by the
  caller after invoking this method.
  
  @param dimensionNumbers
  @param dimensionSizes
  @param keyNums
  @param values