void LoadModel(
ref IConfig config
)The configuration object may be modified during loading to reflect: - Actual model input/output shapes - Supported precision modes - Available execution providers - Optimized parameters 配置对象可能在加载过程中被修改以反映: - 实际模型输入/输出形状 - 支持的精度模式 - 可用的执行提供程序 - 优化参数
Implementations should validate configuration parameters before loading. 实现应在加载前验证配置参数。
| ArgumentNullException | Thrown when config is null. 当config为null时抛出。 |
| FileNotFoundException | Thrown when model file cannot be found. 当找不到模型文件时抛出。 |
| InvalidOperationException | Thrown when model initialization fails. 当模型初始化失败时抛出。 |