未验证 提交 47913354 编写于 作者: W whs 提交者: GitHub

Fix code in image_classification_sensitivity_analysis_tutorial (#833)

上级 7720faa4
......@@ -231,12 +231,6 @@ pruned_val_program, _, _ = pruner.prune(
print("FLOPs after pruning: {}".format(slim.analysis.flops(pruned_val_program)))
```
测试一下剪裁后的模型在测试集上的精度:
```python
test(pruned_val_program)
```
### 8.3 剪裁训练网络
```python
......@@ -251,6 +245,11 @@ pruned_program, _, _ = pruner.prune(
print("FLOPs after pruning: {}".format(slim.analysis.flops(pruned_program)))
```
测试一下剪裁后的模型在测试集上的精度:
```python
test(pruned_val_program)
```
### 8.4 训练剪裁后的模型
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册