# 迁移指南概述 [![查看源文件](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.4.0/resource/_static/logo_source.svg)](https://gitee.com/mindspore/docs/blob/r2.4.0/docs/mindspore/source_zh_cn/migration_guide/overview.md) 本迁移指导包含以PyTorch为主的其他机器学习框架将神经网络迁移到MindSpore的完整步骤。 ```{mermaid} flowchart LR A(总览)-->B(迁移流程) B-->|Step 1|E(环境准备) E-.-text1(本地安装MindSpore) E-.-text2(在线使用ModelArts) B-->|Step 2|F(模型分析与准备) F-.-text3(算法复现/MindSpore Dev Toolkit 工具分析API满足度/分析功能满足度) B-->|Step 3|G(网络搭建对比) G-->I(数据处理) I-.-text4(数据集加载/增强/读取对齐) G-->J(网络搭建) J-.-text5(网络对齐) G-->K(损失函数) K-.-text6(损失函数对齐) G-->L(学习率与优化器) L-.-text7(优化器执行和学习率策略对齐) G-->M(梯度求导) M-.-text8(反向梯度对齐) G-->N(训练及推理流程) N-.-text9(训练与推理对齐) B-->|Step 4|H(调试调优) H-->O(功能调试) O-.-text10(功能方面对齐) H-->P(精度调优) P-.-text11(精度方面对齐) H-->Q(性能调优) Q-.-text12(性能方面对齐) A-->C(网络迁移调试实例) C-.-text13(以ReNet50为例的网络迁移样例) A-->D(参考) D-->R(PyTorch与MindSpore API映射表) D-->S(网络迁移工具应用实践指南) D-->T(常见问题) click C "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/sample_code.html" click D "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/reference.html" click E "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/enveriment_preparation.html" click F "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/analysis_and_preparation.html" click G "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/model_development/model_development.html" click H "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/debug_and_tune.html#调试调优" click I "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/model_development/dataset.html" click J "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/model_development/model_and_cell.html" click K "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/model_development/loss_function.html" click L "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/model_development/learning_rate_and_optimizer.html" click M "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/model_development/gradient.html" click N "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/model_development/training_and_evaluation.html" click O "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/debug_and_tune.html#功能调试" click P "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/debug_and_tune.html#精度调优" click Q "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/debug_and_tune.html#性能调优" click R "https://www.mindspore.cn/docs/zh-CN/r2.4.0/note/api_mapping/pytorch_api_mapping.html" click S "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/migrator_with_tools.html" click T "https://www.mindspore.cn/docs/zh-CN/r2.4.0/migration_guide/faq.html" ```