Skip to content
Merged
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
9 changes: 9 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 0.41.3

Add a lower-level constructor for `LogDensityFunction` which directly takes a VNT of `RangeAndTransform`s plus a sample vectorised input.
This is only intended for use in Turing: users should not need to use this directly.

All other constructors are still available and unchanged in behaviour.

To facilitate the functionality needed for Turing, this also adds more accessor functions for `LogDensityFunction`, namely `get_all_ranges_and_transforms`, `get_sample_input_vector`.

# 0.41.2

Export the accessor functions `get_values(::VarInfo)` and `get_logdensity_callable(::LogDensityFunction)`, so that users do not need to access internal fields of these types directly.
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DynamicPPL"
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
version = "0.41.2"
version = "0.41.3"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
4 changes: 3 additions & 1 deletion docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ The [LogDensityProblems.jl](https://github.com/tpapp/LogDensityProblems.jl) inte

```@docs
LogDensityFunction
get_input_vector_type
RangeAndTransform
get_range_and_transform
get_all_ranges_and_transforms
get_logdensity_callable
get_input_vector_type
get_sample_input_vector
```

Internally, this is accomplished using [`init!!`](@ref) on:
Expand Down
2 changes: 2 additions & 0 deletions src/DynamicPPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ export AbstractVarInfo,
OnlyAccsVarInfo,
to_vector_params,
get_input_vector_type,
get_sample_input_vector,
RangeAndTransform,
get_range_and_transform,
get_all_ranges_and_transforms,
get_logdensity_callable,
# Leaf contexts
AbstractContext,
Expand Down
Loading
Loading