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.
Optimizing control variates for black-box gradient estimation
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.