-
Notifications
You must be signed in to change notification settings - Fork 621
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
RNGBase: Separate noise generation and application steps #2934
Conversation
f462569
to
771f972
Compare
Signed-off-by: Joaquin Anton <janton@nvidia.com>
771f972
to
11e8c74
Compare
dali/operators/random/coin_flip.h
Outdated
|
||
namespace dali { | ||
|
||
template <typename Backend, typename T> |
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.
Do you need a T
here?
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.
I'll remove
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
template <typename T, typename Dist, bool IsNoiseGen, bool DefaultDist> | ||
__global__ void RNGKernel(BlockDesc<IsNoiseGen>* __restrict__ block_descs, |
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.
template <typename T, typename Dist, bool IsNoiseGen, bool DefaultDist> | |
__global__ void RNGKernel(BlockDesc<IsNoiseGen>* __restrict__ block_descs, | |
template <typename T, typename Dist, bool DefaultDist, bool IsNoiseGen,> | |
__global__ void RNGKernel(BlockDesc<IsNoiseGen>* __restrict__ block_descs, |
Nitpick: This way you won't have to pass IsNoiseGen explicitly - it will be inferred from block_descs.
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.
Done
Signed-off-by: Joaquin Anton <janton@nvidia.com>
!build |
CI MESSAGE: [2353184]: BUILD STARTED |
CI MESSAGE: [2353184]: BUILD PASSED |
Signed-off-by: Joaquin Anton janton@nvidia.com
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
Created Impl for all RNGBase based classes, with Generate(...) and Apply(...) methods (Apply only applicable for noise generators)
Dropped float16 support for the sake of better maintainability
RNG and Noise generators
All
Existing tests apply
NA
JIRA TASK: [DALI-2010]