@Override
    public void optimize(RankingExpression expression, ContextIndex context, OptimizationReport report) {
        if (!isEnabled()) return;
        this.report = report;
        expression.setRoot(optimize(expression.getRoot(), context));
        report.note("Tensor expression optimization done");
    }
Recognizes and optimizes tensor expressions.

@author lesters
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/tensoroptimization/TensorOptimizer.java