Handling of nested dictionary (multiple outputs) as model outputs · Issue #24 · yxlee245/pytorch2tf · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<
8000
div id="js-flash-container" class="flash-container" data-turbo-replace>
Hello
Thanks for contributing to this project.
I have a PyTorch model with a nested dictionary as output.
The output is:
{'losses':
{'loss_rec': float values},
'output':
{'pred_rec': int values,
'pred_rec_score': float values
}
}
How can I convert this PyTorch model to ONNX model?
The text was updated successfully, but these errors were encountered:
Hi Rose, for your case, you may want to try something like torch.onnx.export(..., output_nqmes=["pred_rec", "pred_rec_score"]). Let me know how it goes, as it's something quite new for me too
Hello
Thanks for contributing to this project.
I have a PyTorch model with a nested dictionary as output.
The output is:
{'losses':
{'loss_rec': float values},
'output':
{'pred_rec': int values,
'pred_rec_score': float values
}
}
How can I convert this PyTorch model to ONNX model?
The text was updated successfully, but these errors were encountered: