Duplicate dequant nodes for dq encoder (#4222)
Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/4222
{F1749810435}
Here, slice_9 and slice_10 are nops. When eliminated, the graph reduces to
{F1749810958}
dequantize_per_tensor_tensor_3 becomes input to two linear ops, causing failure in dq partitioner. This diff creates duplicates of dequant nodes so that each linear has unique inputs for dq partitioner.
Reviewed By: larryliu0820, pssrawat
Differential Revision: D59647685
fbshipit-source-id: 51ac80b11ce855a5eee2746c815d2f882beaa520 T
Tarun Karuturi committed
e4536529720f7b015ac8582d58b596b8bfa53f36
Parent: b7df20d
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 7/12/2024, 1:19:27 AM