private void checkIfRenameableTo(Tensor tensor, OrderedTensorType type) {
        if ( ! tensor.type().isRenamableTo(type.type()) ) {
            throw new IllegalArgumentException("Constant evaluation in " + name + " resulted in wrong type. " +
                    "Expected: " + type.type() + " Got: " + tensor.type());
        }
    }
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