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

Move static variable defined in .cc #2782

Merged
merged 2 commits into from
Jul 11, 2017

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Jul 10, 2017

We cannot define static variable in .h, because it will be multi-defined
errors.

Also fix some cpp syntax, like:

  • Prefer to use algorithm not manually for-loop, to make code more
    readable.
  • Remove unused ().
  • Enforce take a bool. It is no need xxx==true.
  • Use range-based for-loop iterator from op_desc.attrs

@reyoung reyoung requested a review from JiayiFeng July 10, 2017 02:49
Copy link
Collaborator

@JiayiFeng JiayiFeng left a comment

Choose a reason for hiding this comment

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

LGTM

@reyoung reyoung force-pushed the feature/reading_new_code branch 2 times, most recently from 4d3a783 to 534d396 Compare July 11, 2017 05:40
We cannot define static variable in .h, because it will be multi-defined
errors.

Also fix some cpp syntax, like:

* Prefer to use algorithm not manually for-loop, to make code more
  readable.
* Remove unused `()`.
* Enforce take a bool. It is no need `xxx==true`.
* Use range-based for-loop iterator from op_desc.attrs
Copy link
Collaborator

@JiayiFeng JiayiFeng left a comment

Choose a reason for hiding this comment

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

LGTM

@jacquesqiao jacquesqiao merged commit 267f9a2 into PaddlePaddle:develop Jul 11, 2017
@reyoung reyoung deleted the feature/reading_new_code branch October 28, 2017 22:18
heavengate pushed a commit to heavengate/Paddle that referenced this pull request Aug 16, 2021
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

3 participants