public TensorAddress partialCopy(int[] indexMap) {
        Label[] labels = new Label[indexMap.length];
        for (int i = 0; i < labels.length; ++i) {
            labels[i] = objectLabel(indexMap[i]);
        }
        return TensorAddressAny.ofUnsafe(labels);
    }
Returns an address with only some of the dimension. Ordering will also be according to indexMap
vespajlib/src/main/java/com/yahoo/tensor/TensorAddress.java