[ET-VK][ez] Move execute node threshold calculation from prepare_pipelines() to prepare()#13497
[ET-VK][ez] Move execute node threshold calculation from prepare_pipelines() to prepare()#13497
prepare_pipelines() to prepare()#13497Conversation
…elines()` to `prepare()` Title says it all; `prepare()` is a more appropriate place for this action than `prepare_pipelines()`. ## Motivation Fix potential floating point exception (divide-by-zero) during tests. Some tests don't call `prepare_pipelines()`, which means `execute_threshold_node_count_` is unititialized, causing a divide by zero in execute when trying to modulo with `execute_threshold_node_count_` Differential Revision: [D80468138](https://our.internmc.facebook.com/intern/diff/D80468138/) ghstack-source-id: 303779589 Pull Request resolved: #13478
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13497
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 8 Pending, 1 Unrelated FailureAs of commit 8ebea8b with merge base 5ff0208 ( BROKEN TRUNK - The following job 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
|
…elines()` to `prepare()` (pytorch#13497) Title says it all; `prepare()` is a more appropriate place for this action than `prepare_pipelines()`. ## Motivation Fix potential floating point exception (divide-by-zero) during tests. Some tests don't call `prepare_pipelines()`, which means `execute_threshold_node_count_` is unititialized, causing a divide by zero in execute when trying to modulo with `execute_threshold_node_count_` Differential Revision: [D80468138](https://our.internmc.facebook.com/intern/diff/D80468138/) [ghstack-poisoned]
This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #13478 by @SS-JIA
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/293/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/293/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/293/orig
@diff-train-skip-merge