Commit a2e9699
Fix some flaky LAX autodiff tests.
The primitive autodiff tests for `lax.cosh` and `lax.cbrt` were disabled in #25443 because they were found to be flaky in some configurations. This change re-enables these tests with the following updates:
1. For `lax.cbrt`, we now test with random inputs offset from zero since the derivative of `cbrt` is steep at the origin.
2. For `lax.cosh`, we (further) relax the test tolerance for `complex64` types.
PiperOrigin-RevId: 7067583491 parent 2b06f93 commit a2e9699
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
| 136 | + | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
| |||
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
209 | | - | |
210 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
0 commit comments