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

[FEA] Support UINT random generation with API #692

Closed
tylera-nvidia opened this issue Aug 5, 2024 · 0 comments · Fixed by #695
Closed

[FEA] Support UINT random generation with API #692

tylera-nvidia opened this issue Aug 5, 2024 · 0 comments · Fixed by #695
Labels
enhancement New feature or request

Comments

@tylera-nvidia
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Currently matx::random<uint32_t> is not supported. the curand API supports uint types for some distributions, and MatX should support the same.

Describe the solution you'd like
Enable templated matx::random calls such as:
(input = matx::random<uint32_t>({numChannels, numCols, numRows}, matx::UNIFORM)).run();

Describe alternatives you've considered
you can currently do this by generating floats and casting to uint, however this has a poorly defined distribution.

@tylera-nvidia tylera-nvidia added the enhancement New feature or request label Aug 5, 2024
@tylera-nvidia tylera-nvidia linked a pull request Aug 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant