[{"data":1,"prerenderedAt":75},["ShallowReactive",2],{"content-query-69GJpWpch6":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"cover":11,"type":12,"body":13,"_type":69,"_id":70,"_source":71,"_file":72,"_stem":73,"_extension":74},"/news/en/2672","en",false,"","MindSpore at a Glance | AI Fusion Programming","Take a look at a new feature of MindSpore 2.0: functional + object-oriented fusion programming.","2023-02-10","https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2023/07/31/8df97c05d9404c258b5f21890a780e74.png","news",{"type":14,"children":15,"toc":66},"root",[16,24,30,35,40,45,58],{"type":17,"tag":18,"props":19,"children":21},"element","h1",{"id":20},"mindspore-at-a-glance-ai-fusion-programming",[22],{"type":23,"value":8},"text",{"type":17,"tag":25,"props":26,"children":27},"p",{},[28],{"type":23,"value":29},"Today, mainstream AI frameworks have been optimized in terms of functions and performance, provide rich features, and use basic frameworks with development kits to enable AI to support scientific computing and maximize its value in diverse domains. Under the premise of the convergence of mainstream frameworks, what else can we focus on besides functions and performance? A perspective closely connected to AI developers is usually overlooked: the programming paradigm.",{"type":17,"tag":25,"props":31,"children":32},{},[33],{"type":23,"value":34},"A programming paradigm is a way of categorizing programming thinking (not specific to a programming language), a logical system of programs, and a developer's view of the programming world. Common programming paradigms include object-oriented programming (OOP), procedural programming, and functional programming (FP).",{"type":17,"tag":25,"props":36,"children":37},{},[38],{"type":23,"value":39},"To develop an AI application, you need to define the neural network structure, train the neural network, and deploy the network for inference. The definition process of the neural network is highly aligned with object-oriented programming, while the large-scale training process requires the flexibility and accuracy of FP. This complex set of processes makes it difficult for a programming paradigm to cover each step.",{"type":17,"tag":25,"props":41,"children":42},{},[43],{"type":23,"value":44},"Leaving aside the traditional base suite + domain suite approach, MindSpore, as a general-purpose AI + scientific computing framework, chooses the functional + object-oriented fusion programming paradigm, which takes usability into account during network structure definition and training and supports AI modeling and scientific computing from the bottom layer.",{"type":17,"tag":25,"props":46,"children":47},{},[48,50,56],{"type":23,"value":49},"Now, let's take a look at a new feature of MindSpore 2.0: ",{"type":17,"tag":51,"props":52,"children":53},"strong",{},[54],{"type":23,"value":55},"functional + object-oriented fusion programming",{"type":23,"value":57},".",{"type":17,"tag":25,"props":59,"children":60},{},[61],{"type":17,"tag":62,"props":63,"children":65},"img",{"alt":7,"src":64},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2023/07/31/7e36166ff5c549f189ca5a00c8259d84.png",[],{"title":7,"searchDepth":67,"depth":67,"links":68},4,[],"markdown","content:news:en:2672.md","content","news/en/2672.md","news/en/2672","md",1776506045351]