mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[Codemod][AddExplicitStrictExportForTrainingInferenceArg] caffe2/torch/ao (#150826)
Differential Revision: D72615631 Pull Request resolved: https://github.com/pytorch/pytorch/pull/150826 Approved by: https://github.com/ydwu4
This commit is contained in:
parent
aafc4b6188
commit
c36d9b0d8d
|
|
@ -50,7 +50,7 @@ def lower_pt2e_quantized_to_x86(
|
|||
m.recompile()
|
||||
|
||||
lowered_model = (
|
||||
torch.export.export_for_training(model, example_inputs)
|
||||
torch.export.export_for_training(model, example_inputs, strict=True)
|
||||
.run_decompositions(_post_autograd_decomp_table())
|
||||
.module()
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user