public Tensor evaluate(Map<String, Tensor> inputs, String output) {
        var mapped = new HashMap<String, Tensor>();
        for (var spec : inputSpecs) {
            Tensor val = inputs.get(spec.source);
            if (val == null) {
                throw new IllegalArgumentException("evaluate ONNX model " + name() + ": missing input from source " + spec.source);
            }
            mapped.put(spec.onnxName, val);
        }
        String onnxName = null;
        for (var spec : outputSpecs) {
            if (spec.outputAs.equals(output)) {
                onnxName = spec.onnxName;
            }
        }
        if (onnxName == null) {
            throw new IllegalArgumentException("evaluate ONNX model " + name() + ": no output available as: " + output);
        }
        return unmappedEvaluate(mapped, onnxName);
    }
A named ONNX model that should be evaluated with OnnxEvaluator.

@author lesters
model-evaluation/src/main/java/ai/vespa/models/evaluation/OnnxModel.java