Skip to content

Commit 46e1bb0

Browse files
committed
remove no necessary doc changes. test=develop
2 parents f86429d + ecc3088 commit 46e1bb0

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

paddle/fluid/framework/details/reference_count_pass.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ std::unique_ptr<ir::Graph> ReferenceCountPass::ApplyImpl(
335335
var_name);
336336
ref_cnts[i].emplace(var_name, result.size());
337337
last_live_ops_of_vars[i].emplace(var_name, std::move(result));
338+
break;
338339
}
339340

340341
// Seldomly, all preceding trying failed.

python/paddle/fluid/framework.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ def cuda_places(device_ids=None):
104104
:code:`FLAGS_selected_gpus=0,1,2`, the returned list would
105105
be [fluid.CUDAPlace(0), fluid.CUDAPlace(1), fluid.CUDAPlace(2)].
106106
If :code:`FLAGS_selected_gpus` is not set, all visible
107-
gpu places would be returned.
107+
gpu places would be returned.
108108
109109
If :code:`device_ids` is not None, it should be the device
110-
ids of gpus. For example, if :code:`device_ids=[0,1,2]`,
111-
the returned list would be
110+
ids of gpus. For example, if :code:`device_ids=[0,1,2]`,
111+
the returned list would be
112112
[fluid.CUDAPlace(0), fluid.CUDAPlace(1), fluid.CUDAPlace(2)].
113-
114-
Args:
113+
114+
Args:
115115
device_ids (None|list(int)|tuple(int)): gpu device id list.
116116
117117
Returns:
@@ -133,11 +133,11 @@ def cuda_places(device_ids=None):
133133
def cpu_places(device_count=None):
134134
'''
135135
Create a list of :code:`fluid.CPUPlace` objects.
136-
136+
137137
If :code:`device_count` is None, the device count would
138-
be determined by environment variable :code:`CPU_NUM`.
138+
be determined by environment variable :code:`CPU_NUM`.
139139
If :code:`CPU_NUM` is not set, the device count would
140-
be determined by :code:`multiprocessing.cpu_count()`.
140+
be determined by :code:`multiprocessing.cpu_count()`.
141141
142142
Args:
143143
device_count (None|int): device number.
@@ -155,9 +155,9 @@ def cuda_pinned_places(device_count=None):
155155
Create a list of :code:`fluid.CUDAPinnedPlace` objects.
156156
157157
If :code:`device_count` is None, the device count would
158-
be determined by environment variable :code:`CPU_NUM`.
158+
be determined by environment variable :code:`CPU_NUM`.
159159
If :code:`CPU_NUM` is not set, the device count would
160-
be determined by :code:`multiprocessing.cpu_count()`.
160+
be determined by :code:`multiprocessing.cpu_count()`.
161161
162162
Args:
163163
device_count (None|int): device number.

0 commit comments

Comments
 (0)