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 c4c187a commit 9a6b75bCopy full SHA for 9a6b75b
exir/passes/prune_empty_tensors_pass.py
@@ -5,6 +5,7 @@
5
# LICENSE file in the root directory of this source tree.
6
7
# pyre-strict
8
+from typing import cast, List
9
10
import torch
11
from executorch.exir.dialects._ops import ops as exir_ops
@@ -30,7 +31,7 @@ def remove_empty_tensors_from_cat(
30
31
"""
32
Removes empty tensors from the graph that are inputs to aten.cat.default
33
- concat_list = cat_node.all_input_nodes
34
+ concat_list = cast(List[Node], cat_node.args[0])
35
pruned_concat_list = []
36
for input_arg in concat_list:
37
input_arg_tensor = input_arg.meta["val"]
0 commit comments