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 0e5f309 commit 72b4e08Copy full SHA for 72b4e08
exir/program/_program.py
@@ -995,13 +995,13 @@ def keep(op):
995
996
schema = op._schema
997
native_schema = _pybind_schema_to_native_schema(schema)
998
- if native_schema.is_mutable:
+ if (native_schema is not None) and native_schema.is_mutable:
999
logging.warn(
1000
f"Op {op} was requested for preservation by partitioner. This request is ignored because it is mutable."
1001
)
1002
return False
1003
1004
- if native_schema.aliased_return_names() != [None]:
+ if (native_schema is not None) and native_schema.aliased_return_names() != [None]:
1005
1006
f"Op {op} was requested for preservation by partitioner. This request is ignored because it aliases output."
1007
0 commit comments