File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -682,6 +682,9 @@ def get_input_deps( # noqa
682
682
"""
683
683
nodes = set ()
684
684
for inp in input_nodes :
685
+ if inp .target == exir_ops .edge .aten .permute_copy .default :
686
+ nodes .add (inp )
687
+ inp = cast (torch .fx .Node , inp .args [0 ])
685
688
if inp .target in self ._DQ_OPS :
686
689
# dequant node
687
690
nodes .add (inp )
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ def create_linear(
120
120
src_partition .input_nodes
121
121
+ src_partition .params , # non quant weight can be in params
122
122
)
123
+ if linear_weight .target == exir_ops .edge .aten .permute_copy .default :
124
+ linear_weight = linear_weight .args [0 ]
123
125
logger .debug (f"Found weight: { linear_weight } from node { node } " )
124
126
125
127
linear_bias = self .find (
You can’t perform that action at this time.
0 commit comments