duvenaud / relax

Optimizing control variates for black-box gradient estimation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error

moonblue333 opened this issue · comments

surrogate_cond, grad_surrogate_cond = value_and_grad(surrogate_cond)(params):

value_and_grad only applies to real scalar-output functions. Try jacobian, elementwise_grad or holomorphic_grad.