Skip to content

Commit

Permalink
[fix] fix name for example_code in paddle/incubate/asp/asp.py (Paddl…
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create authored and Frida-a committed Oct 14, 2023
1 parent 248d9e4 commit 1fc628f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/paddle/incubate/asp/asp.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def set_excluded_layers(param_names, main_program=None):
1. Usage of Dynamic Graph
.. code-block:: python
:name: dynamic_graph
:name: dynamic-graph
>>> import paddle
Expand Down Expand Up @@ -79,7 +79,7 @@ def set_excluded_layers(param_names, main_program=None):
2. Usage of Static Graph
.. code-block:: python
:name: static_graph
:name: static-graph
>>> import paddle
Expand Down Expand Up @@ -139,7 +139,7 @@ def reset_excluded_layers(main_program=None):
1. Usage of Dynamic Graph
.. code-block:: python
:name: dynamic_graph
:name: dynamic-graph
>>> import paddle
Expand Down Expand Up @@ -171,7 +171,7 @@ def reset_excluded_layers(main_program=None):
2. Usage of Static Graph
.. code-block:: python
:name: static_graph
:name: static-graph
>>> import paddle
Expand Down Expand Up @@ -232,7 +232,7 @@ def decorate(optimizer):
1. Usage of Dynamic Graph
.. code-block:: python
:name: dynamic_graph
:name: dynamic-graph
>>> import paddle
Expand Down Expand Up @@ -265,7 +265,7 @@ def decorate(optimizer):
2. Usage of Static Graph
.. code-block:: python
:name: static_graph
:name: static-graph
>>> import paddle
Expand Down Expand Up @@ -331,7 +331,7 @@ def prune_model(model, n=2, m=4, mask_algo='mask_1d', with_mask=True):
1. Usage of Dynamic Graph
.. code-block:: python
:name: dynamic_graph
:name: dynamic-graph
>>> import paddle
>>> import numpy as np
Expand Down Expand Up @@ -383,7 +383,7 @@ def prune_model(model, n=2, m=4, mask_algo='mask_1d', with_mask=True):
2. Usage of Static Graph
.. code-block:: python
:name: static_graph
:name: static-graph
>>> import paddle
>>> import numpy as np
Expand Down

0 comments on commit 1fc628f

Please sign in to comment.