Determines whether 'node' is an input to a submodule of 'containing_graph_module'.
(
node: torch.fx.Node, containing_graph_module: torch.fx.GraphModule
)
| 223 | |
| 224 | |
| 225 | def _is_submodule_input( |
| 226 | node: torch.fx.Node, containing_graph_module: torch.fx.GraphModule |
| 227 | ) -> bool: |
| 228 | """Determines whether 'node' is an input to a submodule of |
| 229 | 'containing_graph_module'. |
| 230 | """ |
| 231 | if node.op != "placeholder": |
| 232 | return False |
| 233 | return node.meta.get("is_input", False) |
| 234 | |
| 235 | |
| 236 | def process_placeholder( |
no test coverage detected