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

Refactor check_enabled root validator in DeepSpeedMonitorConfig #3616

Merged
merged 7 commits into from
Jun 2, 2023
Merged

Refactor check_enabled root validator in DeepSpeedMonitorConfig #3616

merged 7 commits into from
Jun 2, 2023

Conversation

bgr8
Copy link
Contributor

@bgr8 bgr8 commented May 26, 2023

Simplify enabled check in root_validator

The updated root_validator in the DeepSpeedMonitorConfig class simplifies the logic by removing the redundant enabled check. Instead, it directly assigns the result of the condition to values["enabled"]. This change improves code readability and eliminates unnecessary code.

@bgr8 bgr8 requested review from awan-10 and jeffra as code owners May 26, 2023 14:50
@mrwyattii
Copy link
Contributor

Thank you @bgr8

@mrwyattii mrwyattii enabled auto-merge (squash) May 31, 2023 18:29
@mrwyattii mrwyattii disabled auto-merge June 2, 2023 17:53
@mrwyattii mrwyattii merged commit 4559aa9 into microsoft:master Jun 2, 2023
molly-smith pushed a commit that referenced this pull request Jun 23, 2023
* Refactor check_enabled root validator in DeepSpeedMonitorConfig

* formatting

* formatting

---------

Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
Co-authored-by: Michael Wyatt <mrwyattii@gmail.com>
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