-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
[Misc] Make handling of SamplingParams clearer in n>1 case #26032
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
Conversation
Signed-off-by: Nick Hill <nhill@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors the logic for handling multiple sampling sequences (n > 1) in add_request. The changes make the code clearer and more robust by correctly using the updated SamplingParams after processing inputs. Specifically, it fixes a bug where the loop range and a condition for handling the last child request were using stale or incorrect parameter objects due to variable shadowing. The new implementation correctly fetches the processed sampling parameters and uses a different variable name to avoid shadowing, which resolves the issues and improves readability. The changes look good and correctly address the fragility of the previous implementation.
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Nick Hill <nhill@redhat.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com> Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com>
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com>
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com>
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
…ect#26032) Signed-off-by: Nick Hill <nhill@redhat.com>
Follow-on to #26005.
Make the logic clearer and less fragile.