Closed andreaskoher closed 2 years ago
I'm not sure how AutoDiff works with randomization, but graph generators draw a bunch of random numbers in order to sample the graph. They are basically just rand
and add_edge!
Many thanks! Apparently, the issue here is my misunderstanding of autodiff :)
Hey all,
I would love to use LG for an inference problem but unfortunately I dont get autodiff to work. Take the following simple example:
(1) generate a random graph with edge probability
p = 0.2
(2) observe edge density (3) compare with taget density (4) propagate gradient with respect top
The gradient with respect to
p
is zero using ForwardDiff and ReverseDiff. Any idea, where autodiff is blocked?