SIGN IN SIGN UP

Handle missing and zero non_const_buffer_sizes (#1571)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/1571

If non_const_buffer_sizes has no elements, don't try to subtract 1 from it. And if it's not present, don't try to get its size.

Reviewed By: JacobSzwejbka

Differential Revision: D52646901

fbshipit-source-id: 7db373b5392f7c079407d00354e4b77cc477eb3b
D
Dave Bort committed
d19f1c5e7f144f1efffb8308645d613a619b1a29
Parent: 0b5e349
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 1/12/2024, 10:57:01 PM