Differentiable Programming
Lab
The notebooks can be downloaded from here
Please rerun both these labs. Take careful note of how to define a custom gradient. This will become relevant in the course when we compose learned layers with PDE solvers. The PDE solver gradients can be calculated with brute force with AD or as described in the custom gradient section you can define a custom routine to calculate the gradient i.e efficiently with the adjoint state method.