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

Change max to abs for preprocess time #240

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

rayandrew
Copy link
Contributor

Hi @zhenghh04 and @hariharan-devarajan,

This PR addresses the problem where random.normal result can be negative.
if we do max(t, 0) then we will reduce the variance of preprocess time when the generated value is negative.

It is better to use abs in this case.

At the same time, I add strict comparison to make sure user does not give negative value while specifying preprocess_time or preprocess_time_stdev in the config.

`normal` result can be negative.
if we do `max(t, 0) then we will reduce the variance when the generated value is negative.
It is better to use `abs` in this case.
Copy link
Collaborator

@hariharan-devarajan hariharan-devarajan left a comment

Choose a reason for hiding this comment

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

This looks good.

@zhenghh04 zhenghh04 merged commit 8614311 into argonne-lcf:main Oct 30, 2024
6 checks passed
@rayandrew rayandrew deleted the fix/normal-dist-preprocess branch November 4, 2024 21:57
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.

3 participants