public void renameDimensions(DimensionRenamer renamer) {
        super.renameDimensions(renamer);
        from = renamer.dimensionNameOf(from).orElse(from);
        to = renamer.dimensionNameOf(to).orElse(to);
    }
Renames a tensor dimension to relax dimension constraints

@author bratseth
model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Rename.java