--model

Function Usage

Sets the path (including the file name) of the model file to be quantized.

See Also

For a Caffe network model, this member must be used together with the parameter.

Value

Argument: model file directory, including the file name.

Format: The path (including the file name) can contain letters, digits, underscores (_), hyphens (-), and periods (.).

Suggestions and Benefits

None

Examples

  • Caffe network:
    --model=$HOME/test/ResNet-50-deploy.prototxt --weights=$HOME/test/ResNet-50-model.caffemodel
  • TensorFlow network:
    --model=$HOME/test/resnet_v1_50.pb
  • ONNX Network Model
    --model=$HOME/test/resnet101_v11.onnx

Constraints

This option is required in both PTQ and QAT model adaptation to Ascend.