We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c81bd6 commit 1a4eadbCopy full SHA for 1a4eadb
src/transforming.jl
@@ -1,3 +1,14 @@
1
+"""
2
+ struct DynamicTransformationContext{isinverse} <: AbstractContext
3
+
4
+When a model is evaluated with this context, transform the accompanying `AbstractVarInfo` to
5
+constrained space if `isinverse` or unconstrained if `!isinverse`.
6
7
+Note that some `AbstractVarInfo` types, must notably `VarInfo`, override the
8
+`DynamicTransformationContext` methods with more efficient implementations.
9
+`DynamicTransformationContext` is a fallback for when we need to evaluate the model to know
10
+how to do the transformation, used by e.g. `SimpleVarInfo`.
11
12
struct DynamicTransformationContext{isinverse} <: AbstractContext end
13
NodeTrait(::DynamicTransformationContext) = IsLeaf()
14
0 commit comments