You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/advanced/gradient_clip_en.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,10 @@ You can also clip gradients of a part of parameters as follow:
32
32
33
33
**b. Clip a part of gradients**
34
34
35
-
You can clip a part of gradients by setting `need_clip` of ref:`cn_api_fluid_ParamAttr` . `need_clip` is `True` by default, which represents that its gradient will be clipped. Otherwise, its gradient will not be clipped.
35
+
You can clip a part of gradients by setting ``need_clip`` of :ref:`cn_api_fluid_ParamAttr` . ``need_clip`` is ``True`` by default, which represents that its gradient will be clipped. Otherwise, its gradient will not be clipped.
36
36
37
37
For example:
38
-
If only clip the gradient of `weight` in `linear`, you should set `bias_attr` as follow:
38
+
If only clip the gradient of ``weight`` in ``linear``, you should set ``bias_attr`` as follow:
39
39
40
40
.. code:: ipython3
41
41
@@ -80,10 +80,10 @@ You can also clip gradients of a part of parameters as follow:
80
80
81
81
**b. Clip a part of gradients**
82
82
83
-
You can clip a part of gradients by setting `need_clip` of ref:`cn_api_fluid_ParamAttr` . `need_clip` is `True` by default, which represents that its gradient will be clipped. Otherwise, its gradient will not be clipped.
83
+
You can clip a part of gradients by setting ``need_clip`` of :ref:`cn_api_fluid_ParamAttr` . ``need_clip`` is ``True`` by default, which represents that its gradient will be clipped. Otherwise, its gradient will not be clipped.
84
84
85
85
For example:
86
-
If only clip the gradient of `bias` in `linear`, you should set `weight_attr` as follow:
86
+
If only clip the gradient of ``bias`` in ``linear``, you should set ``weight_attr`` as follow:
87
87
88
88
.. code:: ipython3
89
89
@@ -131,4 +131,4 @@ You can also clip gradients of a part of parameters as follow:
131
131
132
132
**b. Clip a part of gradients**
133
133
134
-
You can clip a part of gradients by setting `need_clip` of ref:`cn_api_fluid_ParamAttr` . `need_clip` is `True` by default, which represents that its gradient will be clipped. Otherwise, its gradient will not be clipped. Refer to the sample code above.
134
+
You can clip a part of gradients by setting ``need_clip`` of :ref:`cn_api_fluid_ParamAttr` . ``need_clip`` is ``True`` by default, which represents that its gradient will be clipped. Otherwise, its gradient will not be clipped. Refer to the sample code above.
Copy file name to clipboardExpand all lines: docs/guides/flags/debug_en.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ FLAGS_cpu_deterministic
21
21
*******************************************
22
22
(since 0.15.0)
23
23
24
-
This Flag is used for debugging. It indicates whether to make the result of computation deterministic in CPU side. In some case, the result of the different order of summing maybe different,for example, the result of `a+b+c+d` may be different with the result of `c+a+b+d`.
24
+
This Flag is used for debugging. It indicates whether to make the result of computation deterministic in CPU side. In some case, the result of the different order of summing maybe different,for example, the result of ``a+b+c+d`` may be different with the result of ``c+a+b+d``.
Copy file name to clipboardExpand all lines: docs/guides/flags/others_en.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,22 +57,22 @@ FLAGS_sync_nccl_allreduce
57
57
*******************************************
58
58
(since 1.3)
59
59
60
-
If the FLAGS_sync_nccl_allreduce is true, there will call `cudaStreamSynchronize(nccl_stream)` in allreduce_op_handle, this mode can get better performance in some scenarios.
60
+
If the FLAGS_sync_nccl_allreduce is true, there will call ``cudaStreamSynchronize(nccl_stream)`` in allreduce_op_handle, this mode can get better performance in some scenarios.
61
61
62
62
Values accepted
63
63
---------------
64
64
Bool. The default value is True.
65
65
66
66
Example
67
67
-------
68
-
FLAGS_sync_nccl_allreduce=True will call `cudaStreamSynchronize(nccl_stream)` in allreduce_op_handle.
68
+
FLAGS_sync_nccl_allreduce=True will call ``cudaStreamSynchronize(nccl_stream)`` in allreduce_op_handle.
69
69
70
70
71
71
FLAGS_tracer_profile_fname
72
72
*******************************************
73
73
(since 1.4.0)
74
74
75
-
FLAGS_tracer_profile_fname indicates the profiler filename for imperative tracer, which generated by gperftools. Only valid when compiled `WITH_PROFILER=ON`. Empty if disabled.
75
+
FLAGS_tracer_profile_fname indicates the profiler filename for imperative tracer, which generated by gperftools. Only valid when compiled ``WITH_PROFILER=ON``. Empty if disabled.
0 commit comments