diff --git a/backends/qualcomm/_passes/lpai_partition_fallback_support.py b/backends/qualcomm/_passes/lpai_partition_fallback_support.py index 50270e167a7..02c17f92c20 100644 --- a/backends/qualcomm/_passes/lpai_partition_fallback_support.py +++ b/backends/qualcomm/_passes/lpai_partition_fallback_support.py @@ -314,6 +314,8 @@ def handle_back_to_back_nodes(self, graph_module: torch.fx.GraphModule): graph_module.graph.eliminate_dead_code() def call(self, graph_module: torch.fx.GraphModule) -> PassResult: + if self.compiler_specs is None: + return PassResult(graph_module, False) self.preserve_io_qdq(graph_module) unsupported_nodes = self.get_unsupported_nodes(graph_module) for node in unsupported_nodes: