---
title: SENet网络模型prototxt修改
description: "本章节所有的代码样例都不能直接复制到网络模型中使用，需要用户根据使用的网络模型，自行调整相应参数，比如bottom、top中的参数要和具体网络模型中的bottom、top一一对应，并且bottom和top对应的参数顺序不能更改。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/atctool/atlasatc_16_0052.html
sourcePath: /source/zh/canncommercial/900/devaids/atctool/atlasatc_16_0052.html
indexId: b8a83ceb0a41b21e378f39ac92e66a0b6875c3e8d2dcbb77081d5e98e774b70967
---
# SENet网络模型prototxt修改

本章节所有的代码样例都不能直接复制到网络模型中使用，需要用户根据使用的网络模型，自行调整相应参数，比如bottom、top中的参数要和具体网络模型中的bottom、top一一对应，并且bottom和top对应的参数顺序不能更改。


该网络模型中的Axpy算子，需要修改为Reshape、Scale、Eltwise三个算子，修改样例如下：


修改后的代码样例如下：

```
layer {
name: "conv3_1_axpy_reshape"
type: "Reshape"
bottom: "conv3_1_1x1_up"
top: "conv3_1_axpy_reshape"
reshape_param {
shape {
dim: 0
dim: -1
}
}
}
layer {
name: "conv3_1_axpy_scale"
type: "Scale"
bottom: "conv3_1_1x1_increase"
bottom: "conv3_1_axpy_reshape"
top: "conv3_1_axpy_scale"
scale_param {
axis: 0
bias_term: false
}
}
layer {
name: "conv3_1_axpy_eltwise"
type: "Eltwise"
bottom: "conv3_1_axpy_scale"
bottom: "conv3_1_1x1_proj"
top: "conv3_1"
}
```

Reshape、Scale、Eltwise算子相关参数解释请参见支持Caffe算子清单(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/aolapi/operatorlist_00099.html)。
