@Override
    public Optional<List<Value>> getList(String name) {
        for (Onnx.AttributeProto attr : node.getAttributeList()) {
            if (attr.getName().equals(name)) {
                switch (attr.getType()) {
                    case INTS: return Optional.of(attr.getIntsList().stream().map(DoubleValue::new).collect(Collectors.toList()));
                    case FLOATS: return Optional.of(attr.getFloatsList().stream().map(DoubleValue::new).collect(Collectors.toList()));
                    case STRINGS: return Optional.of(attr.getStringsList().stream().map((s) -> StringValue.frozen(s.toString())).collect(Collectors.toList()));
                    default:
                        return Optional.empty();
                }
            }
        }
        return Optional.empty();
    }
Converts Onnx node attributes to Vespa attribute values.

@author lesters
model-integration/src/main/java/ai/vespa/rankingexpression/importer/onnx/AttributeConverter.java