SIGN IN SIGN UP

Replace pytree_assert with production pytree_check. Remove pytree_unreachable

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

When handling untrusted input, it's not appropriate to use debug-only checks; we should be checking in prod as these are not programmer errors. pytree_unreachable was similarly being used for input validation.
ghstack-source-id: 265152270

Differential Revision: [D68166301](https://our.internmc.facebook.com/intern/diff/D68166301/)

Co-authored-by: Github Executorch <github_executorch@arm.com>
P
pytorchbot committed
0100a3722b180c4f84574380962082db0afe591f
Parent: 391bd68
Committed by GitHub <noreply@github.com> on 2/7/2025, 4:26:24 AM