private static String onnxValueTypeToString(Onnx.TensorProto.DataType dataType) {
        return switch (dataType) {
            case FLOAT -> "float";
            case DOUBLE -> "double";
            // Imperfect conversion, for now:
            case BOOL -> "float";
            case INT8 -> "float";
            case INT16 -> "float";
            case INT32 -> "float";
            case INT64 -> "float";
            case UINT8 -> "float";
            case UINT16 -> "float";
            case UINT32 -> "float";
            case UINT64 -> "float";
            default -> throw new IllegalArgumentException("A ONNX tensor with data type " + dataType +
                    " cannot be converted to a Vespa tensor type");
        };
    }
Return the tensor type for an ONNX model for the given context.
An ONNX model can have dynamic/symbolic dimension sizes. If so, the output
type depends on the input types for the given context (rank profile).
config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelInfo.java