Skip to content

Add default implementations of assume and dot_assume #682

@penelopeysm

Description

@penelopeysm

cf. TuringLang/Turing.jl#2360 (comment)

dot_assume's fallback method is here:

function dot_assume(rng, spl::Sampler, ::Any, ::AbstractArray{<:VarName}, ::Any, ::Any)
return error(
"[DynamicPPL] $(alg_str(spl)) doesn't support vectorizing assume statement"
)
end

As far as I can tell assume doesn't have a fallback method so that would just need to be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions