JuliaGPU/CUDA.jl

Add `@non_differentiable` rules for basic random functions

Open

#2,153 创建于 2023年11月6日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Julia (274 fork)batch import
enhancementgood first issue

仓库指标

Star
 (1,408 star)
PR 合并指标
 (平均合并 5天 5小时) (30 天内合并 16 个 PR)

描述

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

贡献者指南