Skip to content

oss qnn bug fix #8304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2025
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