Skip to content

Commit 19332d1

Browse files
authored
Remove graph prints in tests
Differential Revision: D73741049 Pull Request resolved: #10506
1 parent 9a8fcba commit 19332d1

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

backends/cadence/aot/tests/test_fusion_ops_passes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ def forward(self, x):
328328
model = M()
329329
graph_module = export_to_edge(model, (inputs,)).exported_program().graph_module
330330
graph_module = FuseQuantDequantToRequantizePass()(graph_module).graph_module
331-
graph_module.print_readable()
332331

333332
self.check_op_counts(
334333
graph_module,

backends/cadence/aot/tests/test_memory_passes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,6 @@ def forward(self, x) -> torch.Tensor:
711711
.exported_program()
712712
.graph_module
713713
)
714-
graph_module.print_readable()
715714
self.assertEqual(count_node(graph_module, torch.ops.aten._cat_nop.out), 1)
716715
self.assertEqual(
717716
count_node(graph_module, torch.ops.aten._slice_copy_nop.Tensor_out), 0
@@ -741,7 +740,6 @@ def forward(self, x) -> torch.Tensor:
741740
.exported_program()
742741
.graph_module
743742
)
744-
graph_module.print_readable()
745743
self.assertEqual(count_node(graph_module, torch.ops.aten._cat_nop.out), 2)
746744
self.assertEqual(count_node(graph_module, torch.ops.aten.cat.out), 0)
747745
self.verify_nop_memory_alloc(graph_module)

backends/cadence/aot/tests/test_remove_ops_passes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ def forward(self, t: torch.Tensor):
100100
p = RemoveNopAddOpPass()
101101

102102
graph_after_passes = cast(PassResult, p(graph_module)).graph_module
103-
graph_module.print_readable()
104103
self.assertEqual(
105104
count_node(graph_after_passes, exir_ops.edge.aten.add.Tensor),
106105
0,
@@ -140,7 +139,6 @@ def forward(self, t: torch.Tensor):
140139
p = RemoveNopMulOpPass()
141140

142141
graph_after_passes = cast(PassResult, p(graph_module)).graph_module
143-
graph_module.print_readable()
144142
self.assertEqual(
145143
count_node(graph_after_passes, exir_ops.edge.aten.mul.Tensor),
146144
0,

0 commit comments

Comments
 (0)