--weight or -w

Applicable Products

Product

Supported (√/x)

Atlas A3 products

x

Atlas A2 products

x

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Description

Sets the model weight file directory, including the file name.

This option is required for a Caffe model.

The Atlas A2 products does not support the Caffe framework.

The Atlas A3 products does not support the Caffe framework.

See Also

If the original model is of the Caffe framework, this option must be used together with --model or -m. If the weight file and model file have the same name and are stored in the same path, you do not need to specify --weight or -w because the system will match them.

Arguments

Argument: Weight file directory, including the file name.

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

Suggestions and Benefits

None

Examples

--model=${HOME}/test/resnet50.prototxt --weight=${HOME}/test/resnet50new.caffemodel

Dependencies and Restrictions

None