Skip to content

Commit 4555382

Browse files
izaitsevfbfacebook-github-bot
authored andcommitted
Fix pyre errors (#13202)
Summary: Pull Request resolved: #13202 attempt to fix ``` [executorch/exir/backend/test/demos/rpc/executor_backend_partitioner.py:68:19] Undefined attribute [16]: `None` has no attribute `op`. [executorch/exir/backend/test/demos/rpc/executor_backend_partitioner.py:69:20] Undefined attribute [16]: `None` has no attribute `meta`. [executorch/exir/backend/test/test_backends_nested.py:200:20] Undefined attribute [16]: `None` has no attribute `meta`. ``` in D79768387 Reviewed By: cccclai, JacobSzwejbka Differential Revision: D79828275
1 parent 3a02146 commit 4555382

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exir/backend/test/demos/rpc/executor_backend_partitioner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def partition(self, edge_exported_program: ExportedProgram) -> PartitionResult:
6666

6767
# Tag the delegate submodules
6868
if node.args[0].op == "get_attr":
69+
# pyre-ignore[16]: node.args[0] is checked above but Pyre can't infer it
6970
node.args[0].meta["delegation_tag"] = delegation_tag
7071

7172
return PartitionResult(

0 commit comments

Comments
 (0)