[{"data":1,"prerenderedAt":98},["ShallowReactive",2],{"content-query-DFWLr1t8OR":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"cover":11,"type":12,"body":13,"_type":92,"_id":93,"_source":94,"_file":95,"_stem":96,"_extension":97},"/news/zh/3906","zh",false,"","一图读懂昇思MindSpore | AI融合编程新范式","昇思MindSpore作为一个通用的AI+科学计算融合框架，选择了函数式+面向对象融合编程范式的道路","2023-02-10","https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2025/11/17/0c03b8ca618c44e79fa112b707d77bf7.png","news",{"type":14,"children":15,"toc":89},"root",[16,24,30,35,40,45,56,70,82],{"type":17,"tag":18,"props":19,"children":21},"element","h1",{"id":20},"一图读懂昇思mindspore-ai融合编程新范式",[22],{"type":23,"value":8},"text",{"type":17,"tag":25,"props":26,"children":27},"p",{},[28],{"type":23,"value":29},"如今，主流AI框架已经针对功能和性能方面做了较完备的优化，提供了丰富的特性，并且通过基础框架+开发套件的形式，使AI助力科学计算，推动其在各领域发挥更大的价值。在主流框架趋同的前提下，除了功能和性能，我们还能关注什么呢？有一个与AI开发者息息相关却容易被忽视的视角——编程范式。",{"type":17,"tag":25,"props":31,"children":32},{},[33],{"type":23,"value":34},"编程范式，是编程思维的一种分类方式（不针对具体的编程语言），是程序的逻辑体系，是开发者的编程世界观。常见的编程范式有面向对象编程 、面向过程编程、函数式编程等。",{"type":17,"tag":25,"props":36,"children":37},{},[38],{"type":23,"value":39},"AI应用的实现需要定义神经网络结构、训练神经网络、部署与推理……而神经网络的定义过程与面向对象编程高度契合，大规模的训练过程需要函数式编程的灵活性和准确性。这一系列复杂的过程，使得很难用同一套编程范式兼顾每一步。",{"type":17,"tag":25,"props":41,"children":42},{},[43],{"type":23,"value":44},"抛开传统的基础套件+领域套件的方式，昇思MindSpore作为一个通用的AI+科学计算融合框架，选择了函数式+面向对象融合编程范式的道路，兼顾了定义网络结构和训练过程的易用性，同时也实现了从底层兼容AI建模和科学计算建模。",{"type":17,"tag":25,"props":46,"children":47},{},[48,50],{"type":23,"value":49},"下面通过一张图带大家快速了解，",{"type":17,"tag":51,"props":52,"children":53},"strong",{},[54],{"type":23,"value":55},"昇思MindSpore 2.0 新特性——函数式+面向对象融合编程。",{"type":17,"tag":25,"props":57,"children":58},{},[59,64,66],{"type":17,"tag":60,"props":61,"children":63},"img",{"alt":7,"src":62},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2025/11/17/7927b4272ded42d29a721ba5c9630fea.png",[],{"type":23,"value":65}," ",{"type":17,"tag":60,"props":67,"children":69},{"alt":7,"src":68},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2025/11/17/a677cdb94cc94eff92332dad35d96511.png",[],{"type":17,"tag":25,"props":71,"children":72},{},[73,77,78],{"type":17,"tag":60,"props":74,"children":76},{"alt":7,"src":75},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2025/11/17/a7ab758330254b628b15ae55992b89ad.png",[],{"type":23,"value":65},{"type":17,"tag":60,"props":79,"children":81},{"alt":7,"src":80},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2025/11/17/01eb2e1b509f484191e82ca8fc8fe120.png",[],{"type":17,"tag":25,"props":83,"children":84},{},[85],{"type":17,"tag":60,"props":86,"children":88},{"alt":7,"src":87},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2025/11/17/a19b96a8d00e4b2e8bb307d25b7a258e.png",[],{"title":7,"searchDepth":90,"depth":90,"links":91},4,[],"markdown","content:news:zh:3906.md","content","news/zh/3906.md","news/zh/3906","md",1776506091423]