Skip to content

Commit

Permalink
Fix inactive rule to only mark constructor of one type as inactive, n…
Browse files Browse the repository at this point in the history
…ot the constructor for _all_ types
  • Loading branch information
wsmoses committed Jul 23, 2023
1 parent 5d0365d commit bb7ab80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/EnzymeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module EnzymeExt
end
import KernelAbstractions: Kernel, StaticSize, launch_config, __groupsize, __groupindex, blocks, mkcontext, CompilerMetadata, CPU

EnzymeRules.inactive(::typeof(StaticSize), x...) = nothing
EnzymeRules.inactive(::Type{StaticSize}, x...) = nothing

function fwd(ctx, f, args...)
EnzymeCore.autodiff_deferred(Forward, Const(f), Const, Const(ctx), args...)
Expand Down

0 comments on commit bb7ab80

Please sign in to comment.