Skip to content

Commit 2e762a1

Browse files
gmagogsfmfacebook-github-bot
authored andcommitted
torchtnt/tests/framework (#952)
Summary: Pull Request resolved: #952 Reviewed By: galrotem, avikchaudhuri Differential Revision: D67388469 fbshipit-source-id: 6b0fce0e95c1561407c9e118b2b45d47299c8b56
1 parent 2ce298f commit 2e762a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/framework/test_loop_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def forward(self, x):
105105
return x
106106

107107
loss_fn = nn.CrossEntropyLoss()
108-
module = torch.export.export(M(), (torch.rand(4, 4),)).module()
108+
module = torch.export.export(M(), (torch.rand(4, 4),), strict=True).module()
109109

110110
tracked_modules: Dict[str, torch.nn.Module] = {
111111
"module": module,

0 commit comments

Comments
 (0)