Skip to content

Commit 245e158

Browse files
authored
torch/ao
Differential Revision: D72435827 Pull Request resolved: #2029
1 parent ef10f34 commit 245e158

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration/test_integration.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,9 @@ def forward(self, x):
20292029
# we can re-enable this after non-functional IR is enabled in export
20302030
# model = torch.export.export(model, example_inputs).module()
20312031
if TORCH_VERSION_AT_LEAST_2_5:
2032-
model = torch.export.export_for_training(model, example_inputs).module()
2032+
model = torch.export.export_for_training(
2033+
model, example_inputs, strict=True
2034+
).module()
20332035
else:
20342036
model = torch._export.capture_pre_autograd_graph(model, example_inputs)
20352037
after_export = model(x)

0 commit comments

Comments
 (0)