We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c294920 commit 4bebc49Copy full SHA for 4bebc49
exir/program/_program.py
@@ -978,6 +978,18 @@ def _remove_invalid_ops_for_not_decompose(
978
) -> List[torch._ops.OpOverload]:
979
# To address https://github.com/pytorch/executorch/issues/8781
980
def keep(op):
981
+ # Explicit allow list
982
+ allow_list = []
983
+ try:
984
+ # Ops in torch.ops.quant are not always loaded, so we use try/except
985
+ # Aliases output, but we need to allow it for XNNPACK
986
+ allow_list.append(torch.ops.quant.choose_qparams_affine.default)
987
+ except:
988
+ pass
989
+
990
+ if op in allow_list:
991
+ return True
992
993
schema = op._schema
994
native_schema = _pybind_schema_to_native_schema(schema)
995
if native_schema.is_mutable:
0 commit comments