"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["6179"],{39291:function(e,s,n){n.r(s);var r=n(85893),a=n(50065);function l(e){let s=Object.assign({h1:"h1",a:"a",p:"p",h2:"h2",pre:"pre",code:"code",span:"span"},(0,a.ah)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.h1,{id:"hmctapiload_model",children:[(0,r.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#hmctapiload_model",children:"#"}),"hmct.api.load_model"]}),"\n",(0,r.jsx)(s.p,{children:"HMCT\u63D0\u4F9B\u7684\u6A21\u578B\u52A0\u8F7D\u529F\u80FD\uFF0C\u52A0\u8F7D\u4E00\u4E2A\u6307\u5B9A\u8DEF\u5F84\u7684onnx\u6A21\u578B\uFF0C\u7528\u4E8E\u540E\u7EED\u7684\u6A21\u578B\u8F6C\u6362\u3002"}),"\n",(0,r.jsxs)(s.h2,{id:"\u63A5\u53E3\u5F62\u5F0F",children:[(0,r.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#\u63A5\u53E3\u5F62\u5F0F",children:"#"}),"\u63A5\u53E3\u5F62\u5F0F"]}),"\n",(0,r.jsx)(s.pre,{className:"code",children:(0,r.jsx)(s.pre,{className:"shiki css-variables has-line-number",style:{backgroundColor:"var(--shiki-color-background)"},tabIndex:"0",children:(0,r.jsxs)(s.code,{className:"language-cpp",meta:"",children:[(0,r.jsxs)(s.span,{className:"line line-number",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"def"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"load_model"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"onnx_model_file"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:": "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"str"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"->"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"ModelProto"'})]}),"\n"]})})}),"\n",(0,r.jsxs)(s.h2,{id:"\u53C2\u6570\u8BF4\u660E",children:[(0,r.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#\u53C2\u6570\u8BF4\u660E",children:"#"}),"\u53C2\u6570\u8BF4\u660E"]}),"\n",(0,r.jsx)(s.p,{children:"onnx_model_file\uFF0C\u5B57\u7B26\u4E32\u6570\u636E\u7C7B\u578B\uFF0C\u5FC5\u9009\uFF0Connx\u6A21\u578B\u6587\u4EF6\u8DEF\u5F84\u3002"}),"\n",(0,r.jsxs)(s.h2,{id:"\u8FD4\u56DE\u503C\u8BF4\u660E",children:[(0,r.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#\u8FD4\u56DE\u503C\u8BF4\u660E",children:"#"}),"\u8FD4\u56DE\u503C\u8BF4\u660E"]}),"\n",(0,r.jsx)(s.p,{children:"onnx ModelProto\u5BF9\u8C61\u3002"})]})}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,a.ah)(),e.components);return s?(0,r.jsx)(s,Object.assign({},e,{children:(0,r.jsx)(l,e)})):l(e)}s.default=i,i.__RSPRESS_PAGE_META={},i.__RSPRESS_PAGE_META["latest%2Fzh%2Fguide%2Fadvanced_content%2Fhmct_api_reference%2Fload_model.mdx"]={toc:[{id:"\u63A5\u53E3\u5F62\u5F0F",text:"\u63A5\u53E3\u5F62\u5F0F",depth:2},{id:"\u53C2\u6570\u8BF4\u660E",text:"\u53C2\u6570\u8BF4\u660E",depth:2},{id:"\u8FD4\u56DE\u503C\u8BF4\u660E",text:"\u8FD4\u56DE\u503C\u8BF4\u660E",depth:2}],title:"hmct.api.load_model",frontmatter:{}}}}]);