Skip to content

Commit 1933a9a

Browse files
committed
rebase
1 parent 597bcd7 commit 1933a9a

File tree

4 files changed

+2
-384
lines changed

4 files changed

+2
-384
lines changed

ext/NNlibCUDACUDNNExt/batchnorm.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ function EnzymeCore.EnzymeRules.augmented_primal(config, func::EnzymeCore.Const{
186186
cache_running_var = nothing
187187

188188
if !(typeof(y) <: EnzymeCore.Const)
189-
if !(typeof(x) <: EnzymeCore.Const)
190-
|| !(typeof(g) <: EnzymeCore.Const)
191-
|| !(typeof(b) <: EnzymeCore.Const)
189+
if !(typeof(x) <: EnzymeCore.Const) || !(typeof(g) <: EnzymeCore.Const) || !(typeof(b) <: EnzymeCore.Const)
192190

193191
if EnzymeCore.EnzymeRules.overwritten(config)[3]
194192
cache_g = copy(g.val)
@@ -218,9 +216,7 @@ function EnzymeCore.EnzymeRules.reverse(config, func::EnzymeCore.Const{typeof(cu
218216
cache_g, cache_x, cache_running_mean, cache_running_var = cache
219217

220218
if !(typeof(y) <: EnzymeCore.Const)
221-
if !(typeof(x) <: EnzymeCore.Const)
222-
|| !(typeof(g) <: EnzymeCore.Const)
223-
|| !(typeof(b) <: EnzymeCore.Const)
219+
if !(typeof(x) <: EnzymeCore.Const) || !(typeof(g) <: EnzymeCore.Const) || !(typeof(b) <: EnzymeCore.Const)
224220

225221
if EnzymeCore.EnzymeRules.overwritten(config)[3]
226222
cache_g = g.val

src/NNlib.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,4 @@ include("impl/depthwiseconv_im2col.jl")
123123
include("impl/pooling_direct.jl")
124124
include("deprecations.jl")
125125

126-
include("enzyme.jl")
127-
128126
end # module NNlib

src/enzyme.jl

Lines changed: 0 additions & 358 deletions
This file was deleted.

0 commit comments

Comments
 (0)