Skip to content

Commit

Permalink
Replace torch.onnx._export call with torch.onnx.export
Browse files Browse the repository at this point in the history
Deprecated torch.onnx._export
  • Loading branch information
davidt0x committed Jan 15, 2025
1 parent c650f5b commit 63ee3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/MDF/abcd_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def forward(self, input: torch.Tensor):

# Export the model
fn = "ABCD_from_torch.onnx"
torch_out = torch.onnx._export(
torch.onnx.export(
m_abcd, # model being run
input, # model input (or a tuple for multiple inputs)
fn, # where to save the model (can be a file or file-like object)
Expand Down

0 comments on commit 63ee3cf

Please sign in to comment.