@Override
    public ExpressionNode transform(ExpressionNode node, RankProfileTransformContext context) {
        if (node instanceof TensorFunctionNode tfn) {
            node = tfn.withTransformedExpressions(expr -> transform(expr, context));
        }
        if (node instanceof ReferenceNode) {
            return transformFeature((ReferenceNode) node, context);
        } else if (node instanceof CompositeNode) {
            return transformChildren((CompositeNode) node, context);
        } else {
            return node;
        }
    }
Transforms named references to constant tensors with the rank feature 'constant'.

@author geirst
config-model/src/main/java/com/yahoo/schema/expressiontransforms/ConstantTensorTransformer.java