Add fuse_dq_q_pass in exir/passes and also add it to HTP backend (#2295)
Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/2295 There are passes such as these https://fburl.com/code/vs6n4vcv that remove noops from the graph. The problem is that after this pass runs it still leaves in the dq->q nodes in the graph which then potentially get delegated to the backend causing perf regressions. This pass will remove the dq->q ops if their qparams are of the same value. If not it won't touch them. Reviewed By: kimishpatel Differential Revision: D54543323 fbshipit-source-id: 936f34afdf208008907eadd452bfa7ef3cfeb4d2
T
Tarun Karuturi committed
24477df8486d9ced52bc6a841bc86480acf92e53
Parent: f178b1a
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 4/1/2024, 8:51:13 AM