JuliaGPU/CUDA.jl
Vedi su GitHubAdd `@non_differentiable` rules for basic random functions
Open
#2153 aperta il 6 nov 2023
enhancementgood first issue
Metriche repository
- Star
- (1408 star)
- Metriche merge PR
- (Merge medio 5g 5h) (16 PR mergiate in 30 g)
Descrizione
I need to have these lines in my codes to make AD works.
@non_differentiable CUDA.zeros(::Any...)
@non_differentiable CUDA.rand(::Any...)
@non_differentiable CUDA.randn(::Any...)
Can we add them to the extension? Adapting from https://github.com/JuliaDiff/ChainRules.jl/blob/main/src/rulesets/Random/random.jl