Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support training with single device for MobileNet-SSD. #869

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

qingqing01
Copy link
Collaborator

No description provided.

@@ -239,8 +239,9 @@ def if_exist(var):

fluid.io.load_vars(exe, pretrained_model, predicate=if_exist)

train_exe = fluid.ParallelExecutor(
use_cuda=args.use_gpu, loss_name=loss.name)
if args.parallel:
Copy link
Contributor

Choose a reason for hiding this comment

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

可以在判断之前让 train_exe = exe, 然后可以简化下line283~line289
抱歉看错了。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ParalleExe和Executor的run接口不同,Executor多了program。这样还是不太行~

Copy link
Contributor

@wanghaoshuang wanghaoshuang left a comment

Choose a reason for hiding this comment

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

LGTM.

@qingqing01 qingqing01 merged commit 5d1dc2f into PaddlePaddle:develop Apr 23, 2018
@qingqing01 qingqing01 deleted the ssd_single_exe branch January 28, 2019 02:42
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.

None yet

2 participants