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
1 change: 1 addition & 0 deletions backends/qualcomm/_passes/annotate_and_quant_scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class AnnotateAndQuantScalar(ExportPass):
torch.ops.aten.sub.Scalar,
torch.ops.aten.mul.Scalar,
torch.ops.aten.div.Scalar,
torch.ops.aten.mul.Tensor,
"add",
"sub",
"mul",
Expand Down
4 changes: 3 additions & 1 deletion backends/qualcomm/_passes/decompose_silu.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def _copy_meta(self, meta: Dict):

def call(self, graph_module: torch.fx.GraphModule):
graph = graph_module.graph
partitions = get_source_partitions(graph, [torch.nn.functional.silu])
partitions = get_source_partitions(
graph, [torch.nn.functional.silu, torch.ops.aten.silu.default]
)
for _, src_partitions in partitions.items():
for src_partition in src_partitions:

Expand Down
Loading