Computes the gradient of the decorated function.
(*args, **kwds)
| 363 | """ |
| 364 | |
| 365 | def decorated(*args, **kwds): |
| 366 | """Computes the gradient of the decorated function.""" |
| 367 | |
| 368 | _, grad = val_and_grad_function(f, params=params)(*args, **kwds) |
| 369 | return grad |
| 370 | |
| 371 | return decorated |
| 372 |
nothing calls this directly
no test coverage detected