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 9018bd3 commit 233c651Copy full SHA for 233c651
exir/passes/external_constants_pass.py
@@ -97,8 +97,12 @@ def delegate_external_constants_pass(
97
Tag external constants before to_backend. Tagged constants will be saved
98
to an external file.
99
100
+ Note: this pass must be run after run_decompositions(), as tags on
101
+ constants are removed then.
102
+
103
Args:
104
gm: GraphModule to tag.
105
+ ep: ExportedProgram, to distinguish if a node is a constant.
106
filter_fn: node -> str callable indicating the file (str) that a node should be saved to.
107
Returns:
108
PassResult: The resulting gm, and if it was mutated or not.
0 commit comments