Skip to content

Commit 0eb79b1

Browse files
committed
minor changes to comments
1 parent 1f51203 commit 0eb79b1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/simple_varinfo.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ end
676676
# With `SimpleVarInfo`, when we're not working with linked variables, there's no need to do anything.
677677
from_internal_transform(vi::SimpleVarInfo, ::VarName) = identity
678678
from_internal_transform(vi::SimpleVarInfo, ::VarName, dist) = identity
679+
# TODO: Should the following methods specialize on the case where we have a `StaticTransformation{<:Bijectors.NamedTransform}`?
679680
from_linked_internal_transform(vi::SimpleVarInfo, ::VarName) = identity
680681
function from_linked_internal_transform(vi::SimpleVarInfo, ::VarName, dist)
681682
return invlink_transform(dist)

src/varinfo.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,6 @@ function getindex(vi::VarInfo, vns::Vector{<:VarName}, dist::Distribution)
14491449
vals_linked = mapreduce(vcat, vns) do vn
14501450
getindex(vi, vn, dist)
14511451
end
1452-
# TODO: Replace when we have better dispatch for multiple vals.
14531452
return recombine(dist, vals_linked, length(vns))
14541453
end
14551454

0 commit comments

Comments
 (0)