Skip to content

Fix ParallelExecutor bug#17204

Merged
chengduoZH merged 1 commit intoPaddlePaddle:developfrom
chengduoZH:update_ParallelExecutor
May 6, 2019
Merged

Fix ParallelExecutor bug#17204
chengduoZH merged 1 commit intoPaddlePaddle:developfrom
chengduoZH:update_ParallelExecutor

Conversation

@chengduoZH
Copy link
Contributor

@chengduoZH chengduoZH commented May 5, 2019

The trainer_id and num_trainers of build_strategy should not be overwritten by the passed trainer_id and num_trainers of ParallelExecutor.

@chengduoZH chengduoZH requested a review from Yancey0623 May 5, 2019 09:48
@chengduoZH chengduoZH force-pushed the update_ParallelExecutor branch 2 times, most recently from e917155 to 89dd64f Compare May 5, 2019 10:15
test=develop
@chengduoZH chengduoZH force-pushed the update_ParallelExecutor branch from 89dd64f to 3aa5731 Compare May 5, 2019 10:16
Copy link
Contributor

@Xreki Xreki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chengduoZH chengduoZH merged commit f2db475 into PaddlePaddle:develop May 6, 2019
if build_strategy is None:
build_strategy = BuildStrategy()
build_strategy.num_trainers = num_trainers
build_strategy.trainer_id = trainer_id
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trainer_id and num_trainers of build_strategy should not be overwritten by the passed trainer_id and num_trainers of ParallelExecutor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants