(params)
| 237 | # Because ``jvp`` requires every input to be associated with a tangent, we need to |
| 238 | # create a new function that, when given the parameters, produces the output |
| 239 | def func_params_only(params): |
| 240 | return func(params, buffers, input) |
| 241 | |
| 242 | model_output, jvp_out = ft.jvp(func_params_only, (params,), (tangents,)) |
| 243 |