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

Correct the condition when setting External id #978

Closed
wants to merge 1 commit into from

Conversation

fwenguang
Copy link
Contributor

The External id will be set to op.linkedActivity()->correlationId() if op.linkedActivity() is not nullptr. So in if condition we should check if op.linkedActivity()->correlationId() is 0.

@fwenguang
Copy link
Contributor Author

Hi @aaronenyeshi , please help to review this pr, thank you.

Copy link
Member

@aaronenyeshi aaronenyeshi left a comment

Choose a reason for hiding this comment

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

LGTM!

@facebook-github-bot
Copy link
Contributor

@aaronenyeshi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@aaronenyeshi merged this pull request in ba4caf6.

staugust pushed a commit to staugust/kineto that referenced this pull request Aug 27, 2024
Summary:
The `External id` will be set to op.linkedActivity()->correlationId() if op.linkedActivity() is not nullptr. So in `if` condition we should check if op.linkedActivity()->correlationId() is 0.

Pull Request resolved: pytorch#978

Reviewed By: xuzhao9

Differential Revision: D61608345

Pulled By: aaronenyeshi

fbshipit-source-id: edc2c121a970756f008cae10a175b1f7066af18c
staugust pushed a commit to staugust/kineto that referenced this pull request Aug 27, 2024
Summary:
The `External id` will be set to op.linkedActivity()->correlationId() if op.linkedActivity() is not nullptr. So in `if` condition we should check if op.linkedActivity()->correlationId() is 0.

Pull Request resolved: pytorch#978

Reviewed By: xuzhao9

Differential Revision: D61608345

Pulled By: aaronenyeshi

fbshipit-source-id: edc2c121a970756f008cae10a175b1f7066af18c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants