Skip to content

Commit 4200919

Browse files
gmagogsfmfacebook-github-bot
authored andcommitted
executorch/extension/training/examples/XOR (#7391)
Summary: Pull Request resolved: #7391 Reviewed By: avikchaudhuri, ydwu4 Differential Revision: D67383848
1 parent c337bef commit 4200919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/training/examples/XOR/export_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _export_model():
2424

2525
# Captures the forward graph. The graph will look similar to the model definition now.
2626
# Will move to export_for_training soon which is the api planned to be supported in the long term.
27-
ep = export(net, (x, torch.ones(1, dtype=torch.int64)))
27+
ep = export(net, (x, torch.ones(1, dtype=torch.int64)), strict=True)
2828
# Captures the backward graph. The exported_program now contains the joint forward and backward graph.
2929
ep = _export_forward_backward(ep)
3030
# Lower the graph to edge dialect.

0 commit comments

Comments
 (0)