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

Improve torch compatibility #46

Closed
wants to merge 3 commits into from
Closed

Conversation

awf
Copy link
Collaborator

@awf awf commented Mar 8, 2025

Torch compat was spotty, this PR makes it less so.

awf added 3 commits January 13, 2025 10:48
Previous implementation was based on comparison: x - floor(x) > rand
This changes to be based on add: x + rand >= floor(x) + 1

No behavioural change expected, but bias direction and rounding profiles are inverted
@awf awf closed this Mar 8, 2025
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.

1 participant