model
函数功能
加载模型。
函数原型
1 | model(modelPath: str, deviceId: int) |
输入参数说明
参数名 |
类型 |
说明 |
|---|---|---|
modelPath |
str |
模型路径。 |
deviceId |
int |
加载的deviceId。 |
返回参数说明
Model对象。
支持的型号
Atlas 推理系列产品
父主题: 模型推理
加载模型。
1 | model(modelPath: str, deviceId: int) |
参数名 |
类型 |
说明 |
|---|---|---|
modelPath |
str |
模型路径。 |
deviceId |
int |
加载的deviceId。 |
Model对象。
Atlas 推理系列产品