fix build warning like 'comparison between signed and unsigned (#17240)

integer', test=develop
revert-17304-fix_default_paddle_version
songhao 6 years ago committed by Tao Luo
parent a40121e4c8
commit c2e20e2a29

@ -333,7 +333,7 @@ ParallelExecutor::ParallelExecutor(const std::vector<platform::Place> &places,
graph = build_strategy.Apply(graph, {member_->places_[0]}, loss_var_name,
{member_->local_scopes_[0]}, 1,
member_->use_cuda_);
for (int i = 1; i < member_->places_.size(); ++i) {
for (size_t i = 1; i < member_->places_.size(); ++i) {
graphs[i] = build_strategy.Apply(
graphs[i], {member_->places_[i]}, loss_var_name,
{member_->local_scopes_[i]}, 1, member_->use_cuda_);

Loading…
Cancel
Save