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

fix the error of defined more than once #3318

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

EmmonsCurse
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Description

fix the ERROR: "flag 'devices' or 'use_mkldnn' was defined more than once" in cpp inference to adapt the change of Paddle.
37091a405e36be4eff796689ead2e1d7

  1. 'devices' was defined twice in https://github.com/PaddlePaddle/Paddle/blob/64ecdc03db38377e37a1c149086c1eb8700c3e04/paddle/fluid/inference/io.cc#L32 and
    DEFINE_string(devices, "GPU", "Use GPU or CPU devices. Default: GPU");
  2. 'use_mkldnn' was defined twice in https://github.com/PaddlePaddle/Paddle/blob/64ecdc03db38377e37a1c149086c1eb8700c3e04/paddle/phi/core/flags.cc#LL682C30-L682C30 and
    DEFINE_bool(use_mkldnn, false, "Wether enable MKLDNN when use CPU. Defualt: false.");

juncaipeng
juncaipeng previously approved these changes Jun 14, 2023
Copy link
Collaborator

@juncaipeng juncaipeng left a comment

Choose a reason for hiding this comment

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

LGTM

@juncaipeng juncaipeng merged commit 2360fb4 into PaddlePaddle:develop Jun 14, 2023
EmmonsCurse added a commit to EmmonsCurse/PaddleSeg that referenced this pull request Jun 15, 2023
juncaipeng pushed a commit that referenced this pull request Jun 15, 2023
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