Merge ArithmeticNode into ExecuteNode (#2247)
Summary: bypass-github-export-checks Pull Request resolved: https://github.com/pytorch/executorch/pull/2247 This diff moves the logic of `ArithmeticNode` into its corresponding OpFunction `add_arithmetic_node()` and the `ExecuteNode` class. Our aim is to remove all derived classes of `ExecuteNode`, i.e., to make `ExecuteNode` a final class. All operator-specific logic will be handled in the OpFunction. Note the next change will move `StagingNode` into its OpFunction + this new ExecuteNode implementation. Until then, we can't tidy up the `ExecuteNode` class fully. Finally, we leave a few task TODOs. ghstack-source-id: 217439330 exported-using-ghexport Reviewed By: SS-JIA Differential Revision: D53982441 fbshipit-source-id: b8a51eee538b679e4168864a4870f3921c9ba333
J
Jorge Pineda committed
862f755716d4a31984686c5214fd06581b469cce
Parent: fae9ef0
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 3/5/2024, 6:15:18 PM