Title: Convert your PyTorch training model to ONNX | Microsoft Learn
Open Graph Title: Convert your PyTorch training model to ONNX
Description: How to Convert your PyTorch model to the ONNX model format, to integrate with a Windows ML app
Open Graph Description: How to Convert your PyTorch model to the ONNX model format, to integrate with a Windows ML app
Keywords:
Opengraph URL: https://learn.microsoft.com/en-us/windows/ai/windows-ml/tutorials/pytorch-convert-model
Domain: docs.microsoft.com
| color-scheme | light dark |
| twitter:card | summary_large_image |
| og:type | website |
| og:image:alt | Microsoft Learn |
| og:image | https://learn.microsoft.com/en-us/media/open-graph-image.png |
| platform_id | ce62f0b4-7cf5-ce1a-290d-7f383a3e9f62 |
| locale | en-us |
| adobe-target | true |
| uhfHeaderId | MSDocsHeader-WinDevCenter |
| page_type | conceptual |
| ms.service | windows |
| ms.subservice | windows-ai |
| recommendations | true |
| ROBOTS | INDEX, FOLLOW |
| author | stevewhims |
| ms.author | stwhi |
| breadcrumb_path | /windows/ai/breadcrumb/toc.json |
| feedback_system | Standard |
| feedback_product_url | https://www.microsoft.com/windowsinsider/feedbackhub/fb |
| feedback_help_link_url | https://learn.microsoft.com/answers/ |
| feedback_help_link_type | get-help-at-qna |
| ms.collection | ce-skilling-ai-copilot |
| ms.update-cycle | 1825-days |
| ms.date | 2024-06-28T00:00:00Z |
| ms.topic | how-to |
| document_id | b236fa85-23be-f5ec-5c5f-332937187f04 |
| document_version_independent_id | 781552b8-a796-a963-05d3-ed98f509dbd4 |
| updated_at | 2025-06-10T18:08:00Z |
| original_content_git_url | https://github.com/MicrosoftDocs/windows-ai-docs-pr/blob/live/docs/windows-ml/tutorials/pytorch-convert-model.md |
| gitcommit | https://github.com/MicrosoftDocs/windows-ai-docs-pr/blob/90cad3e5c72cc39d6c675f1b62367940d86bee4d/docs/windows-ml/tutorials/pytorch-convert-model.md |
| git_commit_id | 90cad3e5c72cc39d6c675f1b62367940d86bee4d |
| site_name | Docs |
| depot_name | MSDN.windows-ai-docs |
| schema | Conceptual |
| toc_rel | ../../toc.json |
| pdf_url_template | https://learn.microsoft.com/pdfstore/en-us/MSDN.windows-ai-docs/{branchName}{pdfName} |
| word_count | 584 |
| asset_id | windows-ml/tutorials/pytorch-convert-model |
| item_type | Content |
| source_path | docs/windows-ml/tutorials/pytorch-convert-model.md |
| previous_tlsh_hash | D3B92141531CDB019E814DB52DAAB6143DF589C879141DD8011672B2D51BBFE3B981A9DAA20F72AA3B70CA1A3216B34F86DFE71EC0DD5B65145280AC80DC1250956C5A76C9 |
| github_feedback_content_git_url | https://github.com/MicrosoftDocs/windows-ai-docs/blob/docs/docs/windows-ml/tutorials/pytorch-convert-model.md |
| markdown_url | https://learn.microsoft.com/en-us/windows/ai/windows-ml/tutorials/pytorch-convert-model?accept=text/markdown |
| cmProducts | https://authoring-docs-microsoft.poolparty.biz/devrel/540ac133-a371-4dbb-8f94-28d6cc77a70b |
| spProducts | https://authoring-docs-microsoft.poolparty.biz/devrel/60bfc045-f127-4841-9d00-ea35495a5800 |
Links:
Viewport: width=device-width, initial-scale=1.0