Skip to content

Commit 6b9d594

Browse files
committed
ci
1 parent 1536dc0 commit 6b9d594

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/probprog/Utils.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ using ..Reactant:
1717
import ..Reactant: promote_to, make_tracer
1818
import ..Compiler: donate_argument!
1919

20-
"""
21-
process_probprog_function(f, args, op_name)
22-
23-
By convention `args` must have the RNG state as the first argument.
24-
Ensures the RNG state is threaded through as the first result, followed by the actual function results.
25-
"""
2620
function process_probprog_function(f, args, op_name, with_rng=true)
2721
seen = OrderedIdDict()
2822
cache_key = []
@@ -101,20 +95,6 @@ function process_probprog_function(f, args, op_name, with_rng=true)
10195
)
10296
end
10397

104-
"""
105-
process_probprog_outputs(op, linear_results, traced_result, f, args, fnwrapped, resprefix, argprefix, offset=0, rng_only=false)
106-
107-
This function handles the probprog argument convention where:
108-
- **Index 1**: RNG state
109-
- **Index 2**: Function `f` (when `fnwrapped` is true)
110-
- **Index 3+**: Other arguments
111-
112-
`offset` and `rng_only` vary depending on the ProbProg operation, e.g.:
113-
- `simulate` and `generate` return trace, weight, then outputs:
114-
Use `offset=2`: `linear_results[i]` corresponds to `op.result[i+2]`
115-
- `mh` and `regenerate` return trace, accepted/weight, new rng_state:
116-
Use `offset=2, rng_only=true`: only process first result (rng_state)
117-
"""
11898
function process_probprog_outputs(
11999
op,
120100
linear_results,

0 commit comments

Comments
 (0)