You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ET-VK][ez] Move execute node threshold calculation from prepare_pipelines() to prepare() (#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]
0 commit comments