public Dimension withSize(long size) {
            return IndexedBoundDimension.indexed(name, size);
        }
Returns a copy of this with the size set to the given value
vespajlib/src/main/java/com/yahoo/tensor/TensorType.java