-
Notifications
You must be signed in to change notification settings - Fork 747
Arm backend: Replace Tensor_Scalar with Tensor_Tensor in sqrt op #11783
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -227,6 +227,7 @@ def is_node_supported( | |
| exir_ops.edge.aten.squeeze_copy.dims, | ||
| exir_ops.edge.aten.pow.Tensor_Scalar, | ||
| exir_ops.edge.aten.pow.Tensor_Tensor, | ||
| torch.ops.aten.pow.Tensor_Tensor, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why add aten target too? |
||
| exir_ops.edge.aten.where.self, | ||
| operator.getitem, | ||
| exir_ops.edge.quantized_decomposed.quantize_per_tensor.default, | ||
|
|
@@ -308,8 +309,6 @@ class CheckProperQuantization(OperatorSupportBase): | |
| exir_ops.edge.aten.avg_pool2d.default, | ||
| exir_ops.edge.aten.bmm.default, | ||
| exir_ops.edge.aten.convolution.default, | ||
| exir_ops.edge.aten.full.default, | ||
| exir_ops.edge.aten.full_like.default, | ||
| exir_ops.edge.aten.hardtanh.default, | ||
| exir_ops.edge.aten.linear.default, | ||
| exir_ops.edge.aten.max_pool2d_with_indices.default, | ||
|
|
@@ -412,6 +411,7 @@ def is_node_supported( | |
|
|
||
| input_quantized = input_quantized or all( | ||
| (input_node.target in dq_ops) | ||
| or (node.name == "aten_pow_tensor_tensor") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we using |
||
| or (not get_first_fake_tensor(input_node).dtype.is_floating_point) | ||
| for input_node in node.all_input_nodes | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -212,6 +212,7 @@ def _match_pattern( | |
| torch.ops.aten.hardswish_.default, | ||
| torch.ops.aten.full_like.default, | ||
| torch.ops.aten.pow.Tensor_Scalar, | ||
| torch.ops.aten.pow.Tensor_Tensor, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add BI + quantize tests in test_pow.py? |
||
| torch.ops.aten.gelu.default, | ||
| ] | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: move the comment?