"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["2643"],{25556:function(e,s,n){n.r(s);var r=n(85893),i=n(50065);function l(e){let s=Object.assign({h1:"h1",a:"a",pre:"pre",code:"code",span:"span",p:"p",ul:"ul",li:"li",table:"table",thead:"thead",tr:"tr",th:"th",strong:"strong",tbody:"tbody",td:"td"},(0,i.ah)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.h1,{id:"hbdnntensorshape",children:[(0,r.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#hbdnntensorshape",children:"#"}),"hbDNNTensorShape"]}),"\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-keyword)"},children:"typedef"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"struct"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,r.jsxs)(s.span,{className:"line line-number",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"int32_t"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"dimensionSize"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[HB_DNN_TENSOR_MAX_DIMENSIONS];"})]}),"\n",(0,r.jsxs)(s.span,{className:"line line-number",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"int32_t"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" numDimensions;"})]}),"\n",(0,r.jsxs)(s.span,{className:"line line-number",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"hbDNNTensorShape"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n"]})})}),"\n",(0,r.jsx)(s.p,{children:"\u5F20\u91CF\u7684\u5F62\u72B6\u3002"}),"\n",(0,r.jsxs)(s.p,{children:["\u4F8B\u5982\u4E00\u4E2A\u5F20\u91CF ",(0,r.jsx)(s.code,{children:"numDimensions=4"}),"\uFF0C\u5176\u6570\u636E\u6392\u5E03\u4E3A ",(0,r.jsx)(s.code,{children:"1x4x224x224"})," \u5219 ",(0,r.jsx)(s.code,{children:"dimensionSize"})," \u6570\u7EC4\u4E2D\u6309\u987A\u5E8F\u5B58\u50A8\u6570\u636E ",(0,r.jsx)(s.code,{children:"dimensionSize[0]=1"}),"\u3001 ",(0,r.jsx)(s.code,{children:"dimensionSize[1]=4"}),"\u3001",(0,r.jsx)(s.code,{children:"dimensionSize[2]=224"}),"\u3001 ",(0,r.jsx)(s.code,{children:"dimensionSize[3]=224"}),"\u3002"]}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:"\u6210\u5458"}),"\n"]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:(0,r.jsx)(s.strong,{children:"\u6210\u5458\u540D\u79F0"})}),(0,r.jsx)(s.th,{children:(0,r.jsx)(s.strong,{children:"\u63CF\u8FF0"})})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"dimensionSize"})}),(0,r.jsx)(s.td,{children:"\u5F20\u91CF\u6BCF\u4E2A\u7EF4\u5EA6\u7684\u5927\u5C0F\u3002"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"numDimensions"})}),(0,r.jsx)(s.td,{children:"\u5F20\u91CF\u7684\u7EF4\u5EA6\u3002"})]})]})]})]})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.ah)(),e.components);return s?(0,r.jsx)(s,Object.assign({},e,{children:(0,r.jsx)(l,e)})):l(e)}s.default=c,c.__RSPRESS_PAGE_META={},c.__RSPRESS_PAGE_META["latest%2Fzh%2Fguide%2Fucp%2Fruntime%2Fbpu_sdk_api%2Fdata_structure%2FhbDNNTensorShape.mdx"]={toc:[],title:"hbDNNTensorShape",frontmatter:{}}}}]);