Skip to content

Commit c2e20e2

Browse files
a6802739luotao1
authored andcommitted
fix build warning like 'comparison between signed and unsigned (#17240)
integer', test=develop
1 parent a40121e commit c2e20e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/framework/parallel_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ ParallelExecutor::ParallelExecutor(const std::vector<platform::Place> &places,
333333
graph = build_strategy.Apply(graph, {member_->places_[0]}, loss_var_name,
334334
{member_->local_scopes_[0]}, 1,
335335
member_->use_cuda_);
336-
for (int i = 1; i < member_->places_.size(); ++i) {
336+
for (size_t i = 1; i < member_->places_.size(); ++i) {
337337
graphs[i] = build_strategy.Apply(
338338
graphs[i], {member_->places_[i]}, loss_var_name,
339339
{member_->local_scopes_[i]}, 1, member_->use_cuda_);

0 commit comments

Comments
 (0)