private IntermediateOperation evaluableCopy() {
        if (hasRenamedDimensions) {
            return this;
        }
        IntermediateOperation copy = copyTree();

        // Must have performed dimension renaming to properly evaluate as constant
        IntermediateGraph graph = new IntermediateGraph(modelName);
        graph.put(name, copy);
        graph.outputs(graph.defaultSignature()).put(name, name);
        graph.optimize();

        return copy;
    }
Recursively evaluates this operation's constant value to avoid doing it run-time.
model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/IntermediateOperation.java