def _get_runtime_supported_types(opset_version: target) -> Set[type]:
    """Get Core ML Runtime supported data types based on opset version."""
    supported_types = {types.fp16, types.fp32, types.int32, types.str, types.bool}
    if opset_version >= target.iOS17:
        supported_types.update({types.int8, types.uint8, types.int16, types.uint16})
    return supported_types
Get Core ML Runtime supported data types based on opset version.
coremltools/converters/mil/backend/mil/passes/adjust_io_to_supported_types.py