Skip to content

Commit 0c6a71b

Browse files
authored
executorch/backends/transforms/test
Differential Revision: D70831182 Pull Request resolved: #9086
1 parent 380f372 commit 0c6a71b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backends/transforms/test/test_create_delete_constant_placeholder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
class EmptyNetwork(torch.nn.Module):
18-
1918
def forward(self, x: torch.Tensor) -> torch.Tensor:
2019
return x
2120

@@ -30,7 +29,7 @@ def _test_create_delete(kind: InputKind, persistent_buffer: bool = None):
3029
# Toy network with two nodes, input and output
3130
# The result should be 0 = 0
3231
module = EmptyNetwork()
33-
exported_program = export(module, args=module.test_data)
32+
exported_program = export(module, args=module.test_data, strict=True)
3433
exported_program = to_edge(exported_program).exported_program()
3534
graph = exported_program.graph_module.graph
3635
assert len(graph.nodes) == 2

0 commit comments

Comments
 (0)