Commit d2ce595
authored
Fix weight cache bug (#18295)
Summary: XNNPACK sometimes calls weight cache look_up_or_insert with
ptr==nullptr. This is a bit weird - maybe a bug on the XNNPACK side?,
but it seems to do this when it's already hit the cache. Just return the
cached value for the key without validating contents in this case, since
we can't insert anything.
Differential Revision: D970062791 parent d0705e1 commit d2ce595
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
209 | 218 | | |
210 | 219 | | |
211 | | - | |
| 220 | + | |
212 | 221 | | |
213 | 222 | | |
214 | 223 | | |
| |||
0 commit comments