SIGN IN SIGN UP

Fail earlier if chains are not present (#1545)

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

D52451740 made `n_chains_` default to 0 when the chains field is missing, but I just noticed that later on we fail when `n_chains_` is zero. So, just fail immediately if the field is missing.

Reviewed By: JacobSzwejbka

Differential Revision: D52554052

fbshipit-source-id: 40f6e5a0839c418736ef24a82e726ed2cc8a15f0
D
Dave Bort committed
a9bd4257409f8aa5c060296c46e86715c35b8e36
Parent: 409c95a
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 1/12/2024, 10:57:01 PM