Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 8, 2023
1 parent 597bcd7 commit 1933a9a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 384 deletions.
8 changes: 2 additions & 6 deletions ext/NNlibCUDACUDNNExt/batchnorm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ function EnzymeCore.EnzymeRules.augmented_primal(config, func::EnzymeCore.Const{
cache_running_var = nothing

if !(typeof(y) <: EnzymeCore.Const)
if !(typeof(x) <: EnzymeCore.Const)
|| !(typeof(g) <: EnzymeCore.Const)
|| !(typeof(b) <: EnzymeCore.Const)
if !(typeof(x) <: EnzymeCore.Const) || !(typeof(g) <: EnzymeCore.Const) || !(typeof(b) <: EnzymeCore.Const)

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

if !(typeof(y) <: EnzymeCore.Const)
if !(typeof(x) <: EnzymeCore.Const)
|| !(typeof(g) <: EnzymeCore.Const)
|| !(typeof(b) <: EnzymeCore.Const)
if !(typeof(x) <: EnzymeCore.Const) || !(typeof(g) <: EnzymeCore.Const) || !(typeof(b) <: EnzymeCore.Const)

if EnzymeCore.EnzymeRules.overwritten(config)[3]
cache_g = g.val
Expand Down
2 changes: 0 additions & 2 deletions src/NNlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,4 @@ include("impl/depthwiseconv_im2col.jl")
include("impl/pooling_direct.jl")
include("deprecations.jl")

include("enzyme.jl")

end # module NNlib
358 changes: 0 additions & 358 deletions src/enzyme.jl

This file was deleted.

Loading

0 comments on commit 1933a9a

Please sign in to comment.