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

Fixes to random_utils.py #834

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Fixes to random_utils.py #834

merged 1 commit into from
Jan 18, 2025

Conversation

priyakasimbeg
Copy link
Contributor

Fix signed_to_unsigned helper method and mod over 231-1 instead of 232. In Python 3.11 taking mod of type np.uint32 over 2**32 by this will return an overflow error.
Also revert changes that changed dtypes to unsigned ints since it seems like the command produced #801 had a bug in it.

@priyakasimbeg priyakasimbeg requested a review from a team as a code owner January 18, 2025 08:09
Copy link

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@priyakasimbeg priyakasimbeg merged commit 6c8fd56 into dev Jan 18, 2025
31 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant