Skip to content

Commit a4746a1

Browse files
authored
Merge pull request #323 from probcomp/choice-gradients-datatype
Specify the datatype of `choice_grads`
2 parents a96a779 + f0fc594 commit a4746a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gen_fn_interface.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,10 @@ the values of these choices:
366366
```math
367367
∇_A \\left( \\log P(t; x) + J \\right)
368368
```
369-
Also return the assignment (`choice_values`) that is the restriction of \$t\$ to \$A\$.
369+
The gradient is represented as a choicemap whose value at (hierarchical)
370+
address `addr` is \$∂J/∂t[\\texttt{addr}]\$.
371+
372+
Also return the choicemap (`choice_values`) that is the restriction of \$t\$ to \$A\$.
370373
"""
371374
function choice_gradients(trace, selection::Selection, retgrad)
372375
error("Not implemented")

0 commit comments

Comments
 (0)