diff --git a/docs/zh_cn/api_cn/static/nas/darts.rst b/docs/zh_cn/api_cn/dygraph/nas/darts.rst similarity index 100% rename from docs/zh_cn/api_cn/static/nas/darts.rst rename to docs/zh_cn/api_cn/dygraph/nas/darts.rst diff --git a/docs/zh_cn/api_cn/dygraph/pruners/fpgm_filter_pruner.rst b/docs/zh_cn/api_cn/dygraph/pruners/fpgm_filter_pruner.rst index 7fc9e26e7e0b3c7fd7969e851f65678a906b8d0e..083d2f47aaa4e053e957e67a185d7078a4d73561 100644 --- a/docs/zh_cn/api_cn/dygraph/pruners/fpgm_filter_pruner.rst +++ b/docs/zh_cn/api_cn/dygraph/pruners/fpgm_filter_pruner.rst @@ -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`` 的剪è£ç‰ä»·äºŽå‰ªè£å·ç§¯å±‚的输出通é“数。 diff --git a/docs/zh_cn/api_cn/dygraph/pruners/l1norm_filter_pruner.rst b/docs/zh_cn/api_cn/dygraph/pruners/l1norm_filter_pruner.rst index 93b1e3e712ec75092607d785bd40ba1be8962f1a..cf3a05fc370b267967be72e4a46ed66ad1de8419 100644 --- a/docs/zh_cn/api_cn/dygraph/pruners/l1norm_filter_pruner.rst +++ b/docs/zh_cn/api_cn/dygraph/pruners/l1norm_filter_pruner.rst @@ -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`` 的剪è£ç‰ä»·äºŽå‰ªè£å·ç§¯å±‚的输出通é“数。 diff --git a/docs/zh_cn/api_cn/dygraph/pruners/l2norm_filter_pruner.rst b/docs/zh_cn/api_cn/dygraph/pruners/l2norm_filter_pruner.rst index 77f3f2a2fb242f2be64451c6176fed30eed4fab8..0400fdd31b9ff0facb1ade41ee1388475fe504af 100644 --- a/docs/zh_cn/api_cn/dygraph/pruners/l2norm_filter_pruner.rst +++ b/docs/zh_cn/api_cn/dygraph/pruners/l2norm_filter_pruner.rst @@ -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`` 的剪è£ç‰ä»·äºŽå‰ªè£å·ç§¯å±‚的输出通é“数。 diff --git a/docs/zh_cn/api_cn/index.rst b/docs/zh_cn/api_cn/index.rst new file mode 100644 index 0000000000000000000000000000000000000000..b46a1f135e77b561713081426311b096983ab84a --- /dev/null +++ b/docs/zh_cn/api_cn/index.rst @@ -0,0 +1,13 @@ +.. 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 diff --git a/docs/zh_cn/api_cn/static/nas/nas_index.rst b/docs/zh_cn/api_cn/static/nas/nas_index.rst index a42d781d84772f1ca24acc9e4d83f22976ff9c0a..a632345b83d4dd5f8c9fb2689b074686de0e362c 100644 --- a/docs/zh_cn/api_cn/static/nas/nas_index.rst +++ b/docs/zh_cn/api_cn/static/nas/nas_index.rst @@ -10,4 +10,3 @@ table_latency.md early_stop.rst one_shot_api.rst - darts.rst diff --git a/paddleslim/dygraph/prune/filter_pruner.py b/paddleslim/dygraph/prune/filter_pruner.py index 6c97bbb383c09707d43f1e50c08381f7dcef9941..1a90e2516a4240ff705013b9fbae1ddfe5ce9786 100644 --- a/paddleslim/dygraph/prune/filter_pruner.py +++ b/paddleslim/dygraph/prune/filter_pruner.py @@ -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.