Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backends/qualcomm/_passes/convert_bmm_to_matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def _get_ordered_inputs(
def call(self, graph_module: torch.fx.GraphModule):
graph = graph_module.graph
partitions = get_source_partitions(
graph, [operator.matmul, torch.matmul, torch.bmm]
graph,
[operator.matmul, torch.matmul, torch.bmm, torch.ops.aten.matmul.default],
)
for _, src_partitions in partitions.items():
for src_partition in src_partitions:
Expand Down
4 changes: 3 additions & 1 deletion backends/qualcomm/_passes/convert_to_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ def _extract_bmm_ops(self, partitioned_nodes: List[edge_op]) -> List[torch.fx.No
return ret

def _convert(self, graph_module: torch.fx.GraphModule):
partitions = get_source_partitions(graph_module.graph, [torch.nn.Linear])
partitions = get_source_partitions(
graph_module.graph, [torch.nn.Linear, torch.ops.aten.linear.default]
)
for _, src_partitions in partitions.items():
for src_partition in src_partitions:
op_cnt = Counter(
Expand Down
Loading