public Optional<Dimension> dimension(String name) {
        return indexOfDimension(name).map(dimensions::get);
    }
Returns the dimension with this name, or empty if not present
vespajlib/src/main/java/com/yahoo/tensor/TensorType.java