---
title: --weight
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/atctool/atlasatcparam_16_0012.html
sourcePath: /source/zh/canncommercial/900/devaids/atctool/atlasatcparam_16_0012.html
indexId: acf07f333b2d6b84d435ecc1e7960f2c1f163144845b09bc5898e52609f5ae5972
---
# --weight

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | x |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | x |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 功能说明

原始网络模型权重文件路径与文件名，当原始网络模型是Caffe时需要指定。


#### 关联参数

当原始模型为Caffe框架时，需要和--model参数配合使用。


#### 参数取值

参数值：权重文件路径与文件名。

参数值格式：路径和文件名：支持大小写字母（a-z，A-Z）、数字（0-9）、下划线（_）、短横线（-）、句点（.）、中文汉字。


#### 推荐配置及收益

无。


#### 示例

```
atc --mode=0 --model=
$HOME/module/resnet50.prototxt
--weight=
$HOME
/module
/resnet50.caffemodel
--framework=0 --soc_version=
<soc_version>
--output=
$HOME
/module/
out/caffe_resnet50
```


#### 依赖约束

无。
