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 to move BalanceTrajectory to separate file #837

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

mhucka
Copy link
Member

@mhucka mhucka commented Jan 4, 2025

Previously, util_qsim.h included the definitions of the function BalanceTrajectory. This led to compiler warnings about undefined functions in places that included util_qsim.h but didn't use all variants of BalanceTrajectory.

This refactor simply moves BalanceTrajectory to its own file (util_balance_trajectory.cc), and also moves the relevant tests from util_qsim_test.cc to the corresponding util_balance_trajectory.cc.

mhucka added 3 commits January 4, 2025 20:26
Previously, util_qsim.h included the definitions of the function
`BalanceTrajectory`. This led to compiler warnings about undefined
functions in places that included util_qsim.h but didn't use all
variants of `BalanceTrajectory`.

This refactor moves `BalanceTrajectory` to its own file
(util_balance_trajectory.cc), and also moves the relevant tests from
util_qsim_test.cc to the corresponding util_balance_trajectory.cc.
@mhucka mhucka marked this pull request as ready for review January 4, 2025 22:55
@mhucka mhucka mentioned this pull request Jan 4, 2025
@mhucka mhucka added kind/chore Maintenance & housekeeping tasks area/code-health Concerns stability, quality, technical debt, etc. labels Jan 5, 2025
@mhucka mhucka self-assigned this Jan 5, 2025
Copy link
Collaborator

@MichaelBroughton MichaelBroughton left a comment

Choose a reason for hiding this comment

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

LGTM

@mhucka mhucka merged commit 5fecece into tensorflow:master Jan 7, 2025
6 of 7 checks passed
@mhucka mhucka mentioned this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/code-health Concerns stability, quality, technical debt, etc. kind/chore Maintenance & housekeeping tasks
Development

Successfully merging this pull request may close these issues.

2 participants