Commit 209b711
Fix bugs in Solver hash and eq.
Solver is used a static argument. Solver is polymorphic and the subclass identity is used as an implicit argument affecting the trace, so the subclass identity must be part of the key for the Jax cache. The Solver __hash__ and __eq__ methods are not hashing and comparing the class id. This CL fixes that by comparing a string representation of the class id, including the module path.
PiperOrigin-RevId: 8199121831 parent c54dfac commit 209b711
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
0 commit comments