PageSourceSearch

https://docs.swmansion.com/react-native-executorch/assets/js/34bcd4fb.24f09c11.js

js swmansion.com collected 2026-10-02 02:51:29 UTC 5,686 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkdocs=globalThis.webpackChunkdocs||[]).push([[1959],{84565(e,n,s){s.r(n),s.d(n,{assets:()=>a,contentTitle:()=>t,default:()=>h,frontMatter:()=>i,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"api-reference/functions/styleTransferUrls","title":"Function: styleTransferUrls()","description":"styleTransferUrls\\\\(display, slug): object","source":"@site/versioned_docs/version-0.10.0-legacy/06-api-reference/functions/styleTransferUrls.md","sourceDirName":"06-api-reference/functions","slug":"/api-reference/functions/styleTransferUrls","permalink":"/react-native-executorch/docs/0.10.0-legacy/api-reference/functions/styleTransferUrls","draft":false,"unlisted":false,"editUrl":"https://github.com/software-mansion/react-native-executorch/edit/main/docs/versioned_docs/version-0.10.0-legacy/06-api-reference/functions/styleTransferUrls.md","tags":[],"version":"0.10.0-legacy","frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"Function: selectByText()","permalink":"/react-native-executorch/docs/0.10.0-legacy/api-reference/functions/selectByText"},"next":{"title":"Function: useClassification()","permalink":"/react-native-executorch/docs/0.10.0-legacy/api-reference/functions/useClassification"}}');var c=s(74848),l=s(28453);const i={},t="Function: styleTransferUrls()",a={},d=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"Display",id:"display",level:3},{value:"Slug",id:"slug",level:3},{value:"Parameters",id:"parameters",level:2},{value:"display",id:"display-1",level:3},{value:"slug",id:"slug-1",level:3},{value:"Returns",id:"returns",level:2},{value:"coremlBase",id:"coremlbase",level:3},{value:"coremlQuant",id:"coremlquant",level:3},{value:"xnnpackBase",id:"xnnpackbase",level:3},{value:"xnnpackQuant",id:"xnnpackquant",level:3}];function o(e){const n={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,l.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.header,{children:(0,c.jsx)(n.h1,{id:"function-styletransferurls",children:"Function: styleTransferUrls()"})}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"styleTransferUrls"}),"<",(0,c.jsx)(n.code,{children:"Display"}),", ",(0,c.jsx)(n.code,{children:"Slug"}),">(",(0,c.jsx)(n.code,{children:"display"}),", ",(0,c.jsx)(n.code,{children:"slug"}),"): ",(0,c.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,c.jsxs)(n.p,{children:["Defined in: ",(0,c.jsx)(n.a,{href:"https://github.com/software-mansion/react-native-executorch/blob/0e95b8934cc7318c1b30a8e534444a8b50d25230/packages/react-native-executorch/src/constants/modelUrls.ts#L701",children:"constants/modelUrls.ts:701"})]}),"\n",(0,c.jsxs)(n.p,{children:["Builds the four ",(0,c.jsx)(n.code,{children:"(backend, precision)"})," URLs for a single style-transfer style."]}),"\n",(0,c.jsx)(n.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,c.jsx)(n.h3,{id:"display",children:"Display"}),"\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"Display"})," ",(0,c.jsx)(n.em,{children:"extends"})," ",(0,c.jsx)(n.code,{children:"string"})]}),"\n",(0,c.jsx)(n.h3,{id:"slug",children:"Slug"}),"\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"Slug"})," ",(0,c.jsx)(n.em,{children:"extends"})," ",(0,c.jsx)(n.code,{children:"string"})]}),"\n",(0,c.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,c.jsx)(n.h3,{id:"display-1",children:"display"}),"\n",(0,c.jsx)(n.p,{children:(0,c.jsx)(n.code,{children:"Display"})}),"\n",(0,c.jsxs)(n.p,{children:["HF repo suffix (e.g. ",(0,c.jsx)(n.code,{children:"rain-princess"}),")."]}),"\n",(0,c.jsx)(n.h3,{id:"slug-1",children:"slug"}),"\n",(0,c.jsx)(n.p,{children:(0,c.jsx)(n.code,{children:"Slug"})}),"\n",(0,c.jsxs)(n.p,{children:[".pte filename token (e.g. ",(0,c.jsx)(n.code,{children:"rain_princess"}),"). Differs from\n",(0,c.jsx)(n.code,{children:"display"})," for styles whose names contain spaces."]}),"\n",(0,c.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,c.jsx)(n.p,{children:(0,c.jsx)(n.code,{children:"object"})}),"\n",(0,c.jsx)(n.p,{children:"Per-(backend, precision) URLs for the requested style."}),"\n",(0,c.jsx)(n.h3,{id:"coremlbase",children:"coremlBase"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"coremlBase"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"coremlquant",children:"coremlQuant"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"coremlQuant"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"xnnpackbase",children:"xnnpackBase"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"xnnpackBase"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"xnnpackquant",children:"xnnpackQuant"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"xnnpackQuant"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,c.jsx)(n,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}},28453(e,n,s){s.d(n,{R:()=>i,x:()=>t});var r=s(96540);const c={},l=r.createContext(c);function i(e){const n=r.useContext(l);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),r.createElement(l.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.