Model(modelPath, deviceId=0)

Function Usage

Initializes the model.

Input Parameter Description

Parameter

Type

Description

modelPath

string

Model path

deviceId

int

Device where the model is deployed. The default value is 0. (The value -1 indicates that the model is deployed on the host. In this case, this field is reserved and cannot be used.)

Return Parameter Description

Model object