"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["4826"],{77276:function(n,e,r){r.r(e);var s=r(85893),o=r(50065);function a(n){let e=Object.assign({h1:"h1",a:"a",pre:"pre",code:"code",span:"span",p:"p"},(0,o.ah)(),n.components);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(e.h1,{id:"nnbgrtoyuv444",children:[(0,s.jsx)(e.a,{className:"header-anchor","aria-hidden":"true",href:"#nnbgrtoyuv444",children:"#"}),"nn.BgrToYuv444"]}),"\n",(0,s.jsx)(e.pre,{className:"code",children:(0,s.jsx)(e.pre,{className:"shiki css-variables has-line-number",style:{backgroundColor:"var(--shiki-color-background)"},tabIndex:"0",children:(0,s.jsxs)(e.code,{className:"language-python",meta:"",children:[(0,s.jsxs)(e.span,{className:"line line-number",children:[(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"class"}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" horizon_plugin_pytorch"}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"nn"}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"BgrToYuv444 "}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(channel_reversal: bool "}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:" "}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"False"}),(0,s.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n"]})})}),"\n",(0,s.jsx)(e.p,{children:"Convert image color format from bgr to yuv444."}),"\n",(0,s.jsx)(e.p,{children:"Parameters: channel_reversal (bool) \u2013 Color channel order, set to True when used on RGB input. Defaults to False."}),"\n",(0,s.jsx)(e.p,{children:"forward (input: Tensor)"}),"\n",(0,s.jsx)(e.p,{children:"Forward pass of BgrToYuv444."}),"\n",(0,s.jsx)(e.p,{children:"Parameters: input ( Tensor)"})]})}function l(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.ah)(),n.components);return e?(0,s.jsx)(e,Object.assign({},n,{children:(0,s.jsx)(a,n)})):a(n)}e.default=l,l.__RSPRESS_PAGE_META={},l.__RSPRESS_PAGE_META["latest%2Fzh%2Fguide%2Fplugin%2Fplugin_api_reference%2Fhorizon_operator%2Fhorizon_plugin_pytorch_nn_BgrToYuv444.md"]={toc:[],title:"nn.BgrToYuv444",frontmatter:{}}}}]);