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 7047162 commit 6d5fc91Copy full SHA for 6d5fc91
exir/passes/constant_prop_pass.py
@@ -4,6 +4,8 @@
4
# This source code is licensed under the BSD-style license found in the
5
# LICENSE file in the root directory of this source tree.
6
7
+# pyre-unsafe
8
+
9
from collections import OrderedDict
10
from typing import cast, Mapping, Optional
11
@@ -126,6 +128,10 @@ def get_propagated_const_tensor_dict(
126
128
node.args,
127
129
exported_program,
130
const_node_to_tensor,
131
+ ) or not is_const(
132
+ node.kwargs,
133
+ exported_program,
134
+ const_node_to_tensor,
135
):
136
continue
137
0 commit comments