SIGN IN SIGN UP

Fix lifting constants (#1862)

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

ScalarToTensorPass which is run as an aten_to_edge_pass lifts all scalars in the graph to tensors. However this breaks the contract that all constant tensors should be lifted as inputs. To fix this, we can move the lift_constants_pass to after the ScalarToTensorPass.

Reviewed By: cccclai

Differential Revision: D53454481

fbshipit-source-id: 2aca505da7cc678d891fe7630fba4090e12414be
A
Angela Yi committed
3431a0cbed8a5cf7852fc5ea4c206bf0fabd6d77
Parent: 637d066
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 2/7/2024, 1:49:54 AM