Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 0 additions & 125 deletions .github/workflows/Benchmarking.yml

This file was deleted.

36 changes: 18 additions & 18 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@ jobs:
- version: '1'
os: ubuntu-latest
num_threads: 2
# Minimum supported version
- version: 'min'
os: ubuntu-latest
num_threads: 2
# 1.11
- version: '1.11'
os: ubuntu-latest
num_threads: 2
# Single-threaded
- version: '1'
os: ubuntu-latest
num_threads: 1
# Windows
# # Minimum supported version
# - version: 'min'
# os: ubuntu-latest
# num_threads: 2
# # 1.11
# - version: '1.11'
# os: ubuntu-latest
# num_threads: 2
# # Single-threaded
# - version: '1'
# os: ubuntu-latest
# num_threads: 1
# # Windows
- version: '1'
os: windows-latest
num_threads: 2
# macOS
- version: '1'
os: macos-latest
num_threads: 2
# # macOS
# - version: '1'
# os: macos-latest
# num_threads: 2
test_group:
- Group1
- Group2
# - Group2

steps:
- uses: actions/checkout@v6
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/DocTest.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/Docs.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/Enzyme.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/Format.yml

This file was deleted.

1 change: 1 addition & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ DynamicPPL provides several demo models in the `DynamicPPL.TestUtils` submodule.

```@docs
DynamicPPL.TestUtils.DEMO_MODELS
DynamicPPL.TestUtils.ALL_MODELS
```

For every demo model, one can define the true log prior, log likelihood, and log joint probabilities.
Expand Down
8 changes: 6 additions & 2 deletions src/abstract_varinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,14 @@ function link!!(
t::StaticTransformation{<:Bijectors.Transform}, vi::AbstractVarInfo, ::Model
)
b = inverse(t.bijector)
@show b
x = vi[:]
@show x
y, logjac = with_logabsdet_jacobian(b, x)
@show y, logjac
# Set parameters and add the logjac term.
vi = unflatten(vi, y)
@show vi[:]
if hasacc(vi, Val(:LogJacobian))
vi = acclogjac!!(vi, logjac)
end
Expand All @@ -866,7 +870,7 @@ end
function link(vi::AbstractVarInfo, vns::VarNameTuple, model::Model)
return link(default_transformation(model, vi), vi, vns, model)
end
function link(t::DynamicTransformation, vi::AbstractVarInfo, model::Model)
function link(t::AbstractTransformation, vi::AbstractVarInfo, model::Model)
return link!!(t, deepcopy(vi), model)
end

Expand Down Expand Up @@ -932,7 +936,7 @@ end
function invlink(vi::AbstractVarInfo, vns::VarNameTuple, model::Model)
return invlink(default_transformation(model, vi), vi, vns, model)
end
function invlink(t::DynamicTransformation, vi::AbstractVarInfo, model::Model)
function invlink(t::AbstractTransformation, vi::AbstractVarInfo, model::Model)
return invlink!!(t, deepcopy(vi), model)
end

Expand Down
4 changes: 3 additions & 1 deletion src/test_utils/model_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ Even though it is recommended to implement this by hand for a particular `Model`
a default implementation using [`SimpleVarInfo{<:Dict}`](@ref) is provided.
"""
function varnames(model::Model)
return collect(keys(last(DynamicPPL.init!!(model, SimpleVarInfo(Dict())))))
result = collect(keys(last(DynamicPPL.init!!(model, SimpleVarInfo(Dict())))))
# Concretise the element type.
return [x for x in result]
end

"""
Expand Down
Loading