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

1. Move darts from static to dygraph (#647)

2. Add missing api index.rst
3. Fix comment in filter_pruner
4. Update links in API docs
上级 3ac1c773
......@@ -3,7 +3,7 @@ FPGMFilterPruner
.. py:class:: paddleslim.FPGMFilterPruner(model, inputs, sen_file=None)
`源代码 <https://github.com/PaddlePaddle/PaddleSlim/blob/release/2.0.0/paddleslim/dygraph/fpgm_pruner.py>`_
`源代码 <https://github.com/PaddlePaddle/PaddleSlim/blob/release/2.0.0/paddleslim/dygraph/prune/fpgm_pruner.py>`_
用于剪裁卷积层输出通道的的剪裁器。该剪裁器按论文 `Filter Pruning via Geometric Median for Deep Convolutional Neural Networks Acceleration <https://arxiv.org/abs/1811.00250>_` 中的统计方法对单个卷积层内的 ``Filters`` 的重要性进行排序,并按指定比例剪裁掉相对不重要的 ``Filters`` 。对 ``Filters`` 的剪裁等价于剪裁卷积层的输出通道数。
......
......@@ -3,7 +3,7 @@ L1NormFilterPruner
.. py:class:: paddleslim.L1NormFilterPruner(model, inputs, sen_file=None)
`源代码 <https://github.com/PaddlePaddle/PaddleSlim/blob/release/2.0.0/paddleslim/dygraph/l1norm_pruner.py#L14>`_
`源代码 <https://github.com/PaddlePaddle/PaddleSlim/blob/release/2.0.0/paddleslim/dygraph/prune/l1norm_pruner.py#L14>`_
用于剪裁卷积层输出通道的的剪裁器。该剪裁器按 ``Filters`` ``l1-norm`` 统计值对单个卷积层内的 ``Filters`` 的重要性进行排序,并按指定比例剪裁掉相对不重要的 ``Filters`` 。对 ``Filters`` 的剪裁等价于剪裁卷积层的输出通道数。
......
......@@ -3,7 +3,7 @@ L2NormFilterPruner
.. py:class:: paddleslim.L2NormFilterPruner(model, inputs, sen_file=None)
`源代码 <https://github.com/PaddlePaddle/PaddleSlim/blob/release/2.0.0/paddleslim/dygraph/l2norm_pruner.py>`_
`源代码 <https://github.com/PaddlePaddle/PaddleSlim/blob/release/2.0.0/paddleslim/dygraph/prune/l2norm_pruner.py>`_
用于剪裁卷积层输出通道的的剪裁器。该剪裁器按 ``Filters`` ``l2-norm`` 统计值对单个卷积层内的 ``Filters`` 的重要性进行排序,并按指定比例剪裁掉相对不重要的 ``Filters`` 。对 ``Filters`` 的剪裁等价于剪裁卷积层的输出通道数。
......
.. PaddleSlim documentation master file, created by
sphinx-quickstart on Wed Feb 5 14:04:52 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
API文档
=======
.. toctree::
:maxdepth: 1
dygraph/index.rst
static/index.rst
......@@ -10,4 +10,3 @@
table_latency.md
early_stop.rst
one_shot_api.rst
darts.rst
......@@ -49,7 +49,7 @@ class FilterPruner(Pruner):
Args:
model(paddle.nn.Layer): The target model to be pruned.
inputs(list<int>): The inputs of model. It will be use in calling 'model.forward(inputs)'.
inputs(list<Object>): The inputs of model. It will be use in calling 'model.forward(inputs)'.
sen_file(str, optional): The absolute path of file that stores computed sensitivities. If it is
set rightly, 'FilterPruner::sensitive' function can not be called anymore
in next step. Default: None.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册