google / google/jaxopt

has_aux option in custom_root

Open
#232 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.1k
Forks
76
Avg merge
2d 21h
Merged PRs (30d)
1

Description

Hi!

I'm trying to solve a bilevel problem involving a neural network using implicit diff, but I have an incompatible shape in `solve_normal_cg` since the matrix multiplying in `matvec` is not square.

As explained in https://github.com/google/jaxopt/issues/183, this can be solved by giving an initialization to the solver with the correct shape, but I have no clue how to find the correct shape.

Is there an automatic way to infer the shape of the initialization?
Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.