public Builder set(Dimension dimension) {
            Objects.requireNonNull(dimension, "A dimension cannot be null");
            dimensions.put(dimension.name(), dimension);
            return this;
        }
Adds or replaces a dimension in this
vespajlib/src/main/java/com/yahoo/tensor/TensorType.java