SIGN IN SIGN UP

Only add extended header if segments exist (#1352)

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

If `extract_constant_segment` or `extract_delegate_segments` is true, but there are no segments to extract, we do not need to add the extended header.

Reviewed By: dbort

Differential Revision: D51766285

fbshipit-source-id: ec5f50f215c7702f2a4552411f5743861011b1c8
L
Lucy Qiu committed
0415a35f37324cca695b2c5839867c03f57f18ff
Parent: d08d658
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 12/5/2023, 7:18:06 PM