Skip to content

Commit bec523a

Browse files
committed
Merge remote-tracking branch 'origin/main' into breaking
2 parents 80db9e2 + 968c879 commit bec523a

File tree

7 files changed

+67
-375
lines changed

7 files changed

+67
-375
lines changed

.github/workflows/Enzyme.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Enzyme on demo models
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
# needed to allow julia-actions/cache to delete old caches that it has created
10+
permissions:
11+
actions: write
12+
contents: read
13+
14+
# Cancel existing tests on the same PR if a new commit is added to a pull request
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
17+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
18+
19+
jobs:
20+
enzyme:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: julia-actions/setup-julia@v2
26+
with:
27+
version: "1"
28+
29+
- uses: julia-actions/cache@v2
30+
31+
- name: Run AD with Enzyme on demo models
32+
working-directory: test/integration/enzyme
33+
run: |
34+
julia --project=. --color=yes -e 'using Pkg; Pkg.instantiate()'
35+
julia --project=. --color=yes main.jl

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ This release overhauls how VarInfo objects track variables such as the log joint
1818
- `getlogp` now returns a `NamedTuple` with keys `logprior` and `loglikelihood`. If you want the log joint probability, which is what `getlogp` used to return, use `getlogjoint`.
1919
- Correspondingly `setlogp!!` and `acclogp!!` should now be called with a `NamedTuple` with keys `logprior` and `loglikelihood`. The `acclogp!!` method with a single scalar value has been deprecated and falls back on `accloglikelihood!!`, and the single scalar version of `setlogp!!` has been removed. Corresponding setter/accumulator functions exist for the log prior as well.
2020

21+
## 0.36.12
22+
23+
Removed several unexported functions.
24+
The only notable one is `DynamicPPL.alg_str`, which was used in old versions of AdvancedVI and the Turing test suite.
25+
2126
## 0.36.11
2227

2328
Make `ThreadSafeVarInfo` hold a total of `Threads.nthreads() * 2` logp values, instead of just `Threads.nthreads()`.

docs/make.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ makedocs(;
2424
format=Documenter.HTML(; size_threshold=2^10 * 400),
2525
modules=[DynamicPPL, Base.get_extension(DynamicPPL, :DynamicPPLMCMCChainsExt)],
2626
pages=[
27-
"Home" => "index.md",
28-
"API" => "api.md",
29-
"Internals" => ["internals/varinfo.md", "internals/submodel_condition.md"],
27+
"Home" => "index.md", "API" => "api.md", "Internals" => ["internals/varinfo.md"]
3028
],
3129
checkdocs=:exports,
3230
doctest=false,

0 commit comments

Comments
 (0)