From ed1776eb59b586969fa336dea60cca519d19a3e6 Mon Sep 17 00:00:00 2001 From: Markus Hauru Date: Thu, 12 Sep 2024 10:19:21 +0100 Subject: [PATCH] Expand Enzyme extension comment --- ext/DynamicPPLEnzymeCoreExt.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/DynamicPPLEnzymeCoreExt.jl b/ext/DynamicPPLEnzymeCoreExt.jl index 20e325fcd..ceb3f4981 100644 --- a/ext/DynamicPPLEnzymeCoreExt.jl +++ b/ext/DynamicPPLEnzymeCoreExt.jl @@ -10,7 +10,9 @@ end @inline EnzymeCore.EnzymeRules.inactive_type(::Type{<:DynamicPPL.SamplingContext}) = true -# Mark istrans as having 0 derivative -@inline EnzymeCore.EnzymeRules.inactive_noinl(::typeof(DynamicPPL.istrans), args...) = nothing +# Mark istrans as having 0 derivative. The `nothing` return value is not significant, Enzyme +# only checks whether such a method exists, and never runs it. +@inline EnzymeCore.EnzymeRules.inactive_noinl(::typeof(DynamicPPL.istrans), args...) = + nothing end