A number of models that differentiate through an optimization algorithm use this in order to maintain the differentiability of the model. Here 1 is a meta-learning package that uses this approach (see L. 273) and here 1 is another user that uses this to solve a similar problem.