Commit 16a9d59
Add test when there are no segments (#12687)
Summary:
The deprecation warning should only appear when there are values inside
the constant_buffer and nothing inside the constant_segment.
Even when there are no constants in the program, we expect to have one
'segment' storing the placeholder for non-constants.
Fix failing jobs caused by error logging from #12295
Test failures:
https://hud.pytorch.org/pr/pytorch/executorch/12631#46239138027
Arm test is using a recently-generated PTE, however hitting the
deprecation warning because the pte has no constants.
Differential Revision: D78568839
Co-authored-by: lucylq <[email protected]>1 parent 6b8f37a commit 16a9d59
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
176 | 187 | | |
177 | 188 | | |
178 | 189 | | |
| |||
0 commit comments