"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["8750"],{80082:function(e,r,n){n.r(r);var a=n(85893),s=n(50065);function o(e){let r=Object.assign({h1:"h1",a:"a",p:"p",h2:"h2",pre:"pre",code:"code",span:"span"},(0,s.ah)(),e.components);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.h1,{id:"hmctapiload_model",children:[(0,a.jsx)(r.a,{className:"header-anchor","aria-hidden":"true",href:"#hmctapiload_model",children:"#"}),"hmct.api.load_model"]}),"\n",(0,a.jsx)(r.p,{children:"The model loading function is provided by HMCT to load an onnx model with a specified path for subsequent model conversion."}),"\n",(0,a.jsxs)(r.h2,{id:"interface-form",children:[(0,a.jsx)(r.a,{className:"header-anchor","aria-hidden":"true",href:"#interface-form",children:"#"}),"Interface Form"]}),"\n",(0,a.jsx)(r.pre,{className:"code",children:(0,a.jsx)(r.pre,{className:"shiki css-variables has-line-number",style:{backgroundColor:"var(--shiki-color-background)"},tabIndex:"0",children:(0,a.jsxs)(r.code,{className:"language-cpp",meta:"",children:[(0,a.jsxs)(r.span,{className:"line line-number",children:[(0,a.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"def"}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"load_model"}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"onnx_model_file"}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:": "}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"str"}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"->"}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,a.jsx)(r.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"ModelProto"'})]}),"\n"]})})}),"\n",(0,a.jsxs)(r.h2,{id:"parameter",children:[(0,a.jsx)(r.a,{className:"header-anchor","aria-hidden":"true",href:"#parameter",children:"#"}),"Parameter"]}),"\n",(0,a.jsx)(r.p,{children:"onnx_model_file, string data type, mandatory, onnx model file path."}),"\n",(0,a.jsxs)(r.h2,{id:"return-value",children:[(0,a.jsx)(r.a,{className:"header-anchor","aria-hidden":"true",href:"#return-value",children:"#"}),"Return Value"]}),"\n",(0,a.jsx)(r.p,{children:"The onnx ModelProto object."})]})}function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:r}=Object.assign({},(0,s.ah)(),e.components);return r?(0,a.jsx)(r,Object.assign({},e,{children:(0,a.jsx)(o,e)})):o(e)}r.default=t,t.__RSPRESS_PAGE_META={},t.__RSPRESS_PAGE_META["latest%2Fen%2Fguide%2Fadvanced_content%2Fhmct_api_reference%2Fload_model.mdx"]={toc:[{id:"interface-form",text:"Interface Form",depth:2},{id:"parameter",text:"Parameter",depth:2},{id:"return-value",text:"Return Value",depth:2}],title:"hmct.api.load_model",frontmatter:{}}}}]);