Skip to content

Commit

Permalink
executorch/extension/training/examples/XOR
Browse files Browse the repository at this point in the history
Reviewed By: avikchaudhuri

Differential Revision: D67383848
  • Loading branch information
gmagogsfm authored and facebook-github-bot committed Dec 19, 2024
1 parent b0bf9aa commit 5425b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/training/examples/XOR/export_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _export_model():

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

0 comments on commit 5425b2e

Please sign in to comment.