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

貢獻者指南