Use EValue::tryTo* #19040
Conversation
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19040
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 Cancelled Jobs, 2 Unrelated FailuresAs of commit d32d696 with merge base c3f3d12 ( CANCELLED JOBS - The following jobs were cancelled. Please retry:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Use tryTo in: - parseTensorList (tensor_parser_exec_aten.cpp) — called .toTensor() on each element index of a TensorList. - parseListOptionalType (tensor_parser.h) — called .toOptional<T>() on each element index of an OptionalTensorList. - FreeCall instruction handler (method.cpp) — called .toTensor() on the value index being freed. Unit tests cover parseTensorList and parseListOptionalType receiving a non-matching EValue and expect Error::InvalidType. Authored-with: Claude --------- Co-authored-by: Github Executorch <github_executorch@arm.com>
Use tryTo in:
on each element index of a TensorList.
on each element index of an OptionalTensorList.
on the value index being freed.
Unit tests cover parseTensorList and parseListOptionalType receiving
a non-matching EValue and expect Error::InvalidType.
Authored-with: Claude