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

Hparams: Sort by differs then by name. #6601

Merged
merged 2 commits into from
Sep 25, 2023
Merged

Conversation

yatbear
Copy link
Member

@yatbear yatbear commented Sep 25, 2023

After sorting with the explicitly specified sorting key (differs), sorted() returns the order within each differs group differently when running externally v.s. internally, which broke internal tests. Changing to sort by name within each differs group as a workaround.

Googlers, see the test failure details in cl/568227790.

#hparams

Copy link
Contributor

@bmd3k bmd3k left a comment

Choose a reason for hiding this comment

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

We decided offline: Move the "sort by differs (first) and name (second)" logic to the actual code.

@yatbear yatbear changed the title Hparams: fix unit tests for sync Hparams: Sort by differs then by name. Sep 25, 2023
@yatbear
Copy link
Member Author

yatbear commented Sep 25, 2023

We decided offline: Move the "sort by differs (first) and name (second)" logic to the actual code.

Done.

@yatbear yatbear requested a review from bmd3k September 25, 2023 17:32
@yatbear yatbear merged commit 9394c5e into tensorflow:master Sep 25, 2023
13 checks passed
@yatbear yatbear deleted the fix_tests branch September 25, 2023 17:52
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