Skip to content

ProbProg: Making trace an operand #1444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open

Conversation

sbrantq
Copy link
Member

@sbrantq sbrantq commented Jul 3, 2025

No description provided.

σ = Reactant.ConcreteRNumber(1.0)

trace, weight = ProbProg.simulate(model2, seed, μ, σ, shape)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

@sbrantq sbrantq force-pushed the probprog-trace-operand branch from f566cde to f6ee849 Compare July 3, 2025 23:17
@sbrantq sbrantq requested a review from wsmoses July 11, 2025 16:50
src/ProbProg.jl Outdated
function generate(f::Function, args::Vararg{Any,Nargs}; constraints=nothing) where {Nargs}
trace = ProbProgTrace(f, (args...,))
function simulate(f::Function, args::Vararg{Any,Nargs}) where {Nargs}
old_gc_state = GC.enable(false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move into the runtime functions?

@sbrantq sbrantq changed the base branch from probprog to main July 18, 2025 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants