import{s as _i,n as Ii,o as Ni}from"../chunks/scheduler.35aab934.js";import{S as Ui,i as Ri,e as u,s as l,c as a,h as Fi,a as d,d as i,b as o,f as Pi,g as s,j as g,k as Li,l as Gi,m as n,n as r,t as p,o as m,p as f}from"../chunks/index.de17b971.js";import{C as qi}from"../chunks/CopyLLMTxtMenu.48bc5cc2.js";import{C as Le}from"../chunks/CodeBlock.c1f62de5.js";import{H as $,E as Si}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8fdece89.js";function Wi(Kt){let h,Ne,_e,Ue,w,Re,v,Fe,T,Ge,c,qe,b,Yt=`The TensorFlow Model Optimization Toolkit is a suite of tools for optimizing machine learning models for deployment.
The TensorFlow Lite post-training quantization tool enable users to convert weights to 8 bit precision which reduces the trained model size by about 4 times.
The tools also include API for pruning and quantization during training if post-training quantization is insufficient.
These help user to reduce latency and inference cost, deploy models to edge devices with restricted resources and optimized execution for existing hardware or new special purpose accelerators.`,Se,x,We,y,Zt="The Tensorflow Model Optimization Toolkit is available as a pip package, <code>tensorflow-model-optimization</code>. To install the package, run the following command:",Ae,M,je,C,Ee,k,ei='For a hands-on guide on how to use the Tensorflow Model Optimization Toolkit, refer this <a href="https://github.com/huggingface/computer-vision-course/blob/main/notebooks/Unit%209%20-%20Model%20Optimization/tmo.ipynb" rel="nofollow">notebook</a>',Xe,H,Je,O,Ve,z,ti=`For optimizing model, PyTorch supports INT8 quantization compared to typical FP32 models which leads to 4x reduction in the model size and a 4x reduction in memory bandwidth requirements.
PyTorch supports multiple approaches to quantizing a deep learning model which are as follows:`,Be,P,ii="<li>Model is trained in FP32 and then the model is converted to INT8.</li> <li>Quantization aware training, where models quantization errors in both the forward and backward passes using fake-quantization modules.</li> <li>Represent quantized tensors and perform operations with them. They can be used to directly construct models that perform all or part of the computation in lower precision.</li>",Qe,L,ni='For more details on quantization in PyTorch, see <a href="https://pytorch.org/docs/stable/quantization.html" rel="nofollow">here</a>',De,_,Ke,I,li="PyTorch quantization is available as API in the PyTorch package. To use it simple install PyTorch and import the quantization API as follows:",Ye,N,Ze,U,et,R,oi='For a hands-on guide on how to use the Pytorch Quantization, refer this <a href="https://github.com/huggingface/computer-vision-course/blob/main/notebooks/Unit%209%20-%20Model%20Optimization/torch.ipynb" rel="nofollow">notebook</a>',tt,F,it,G,nt,q,ai=`ONNX Runtime is a cross-platform machine-learning model accelerator, with a flexible interface to integrate hardware-specific libraries.
ONNX Runtime can be used with models from PyTorch, Tensorflow/Keras, TFLite, scikit-learn, and other frameworks.
The benefits of using ONNX Runtime for Inferencing are as follows:`,lt,S,si="<li>Improve inference performance for a wide variety of ML models.</li> <li>Run on different hardware and operating systems.</li> <li>Train in Python but deploy into a C#/C++/Java app.</li> <li>Train and perform inference with models created in different frameworks.</li>",ot,W,ri='For more details on ONNX Runtime, see <a href="https://onnxruntime.ai/docs/" rel="nofollow">here</a>.',at,A,st,j,pi=`ONNX Runtime has 2 python package and only one of these packages should be installed at a time in any one environment.
Use the GPU package if you want to use ONNX Runtime with GPU support.
The python package for ONNX Runtime is available as a pip package. To install the package, run the following command:`,rt,E,pt,X,mi="For GPU version, run the following command:",mt,J,ft,V,ut,B,fi='For a hands-on guide on how to use the ONNX Runtime, refer this <a href="https://github.com/huggingface/computer-vision-course/blob/main/notebooks/Unit%209%20-%20Model%20Optimization/onnx.ipynb" rel="nofollow">notebook</a>',dt,Q,gt,D,$t,K,ui=`NVIDIA® TensorRT™ is an SDK for optimizing trained deep learning models to enable high-performance inference.
TensorRT contains a deep learning inference optimizer for trained deep learning models, and a runtime for execution.
After user have trained their deep learning model in a framework of their choice, TensorRT enables user to run it with higher throughput and lower latency.`,ht,Y,wt,Z,di="TensorRT is available as a pip package, <code>tensorrt</code>. To install the package, run the following command:",vt,ee,Tt,te,gi='for other installation methods, see <a href="https://docs.nvidia.com/deeplearning/tensorrt/quick-start-guide/index.html#install" rel="nofollow">here</a>.',ct,ie,bt,ne,$i='For a hands-on guide on how to use the TensorRT, refer this <a href="https://github.com/huggingface/computer-vision-course/blob/main/notebooks/Unit%209%20-%20Model%20Optimization/tensorrt.ipynb" rel="nofollow">notebook</a>',xt,le,yt,oe,Mt,ae,hi=`The OpenVINO™ toolkit enables user to optimize a deep learning model from almost any framework and deploy it with best-in-class performance on a range of Intel® processors and other hardware platforms.
The benefits of using OpenVINO includes:`,Ct,se,wi="<li>link directly with OpenVINO Runtime to run inference locally or use OpenVINO Model Server to serve model inference from a separate server or within Kubernetes environment</li> <li>Write an application once, deploy it anywhere on your preferred device, language and OS</li> <li>has minimal external dependencies</li> <li>Reduces first-inference latency by using the CPU for initial inference and then switching to another device once the model has been compiled and loaded to memory</li>",kt,re,Ht,pe,vi="Openvino is available as a pip package, <code>openvino</code>. To install the package, run the following command:",Ot,me,zt,fe,Ti='For other installation methods, see <a href="https://docs.openvino.ai/2023.2/openvino_docs_install_guides_overview.html?VERSION=v_2023_2_0&amp;OP_SYSTEM=LINUX&amp;DISTRIBUTION=ARCHIVE" rel="nofollow">here</a>.',Pt,ue,Lt,de,ci='For a hands-on guide on how to use the OpenVINO, refer this <a href="https://github.com/huggingface/computer-vision-course/blob/main/notebooks/Unit%209%20-%20Model%20Optimization/openvino.ipynb" rel="nofollow">notebook</a>',_t,ge,It,$e,Nt,he,bi=`Optimum serves as an extension of <a href="https://huggingface.co/docs/transformers" rel="nofollow">Transformers</a>, offering a suite of tools designed for optimizing performance in training and
running models on specific hardware, ensuring maximum efficiency. In the rapidly evolving AI landscape, specialized hardware and unique optimizations continue to emerge regularly.
Optimum empowers developers to seamlessly leverage these diverse platforms, maintaining the ease of use inherent in Transformers.
Platforms supported by optimum as of now are:`,Ut,we,xi='<li><a href="https://huggingface.co/docs/optimum/habana/index" rel="nofollow">Habana</a></li> <li><a href="https://huggingface.co/docs/optimum/intel/index" rel="nofollow">Intel</a></li> <li><a href="https://github.com/huggingface/optimum-nvidia" rel="nofollow">Nvidia</a></li> <li><a href="https://huggingface.co/docs/optimum-neuron/index" rel="nofollow">AWS Trainium and Inferentia</a></li> <li><a href="https://huggingface.co/docs/optimum/amd/index" rel="nofollow">AMD</a></li> <li><a href="https://huggingface.co/docs/optimum/furiosa/index" rel="nofollow">FuriosaAI</a></li> <li><a href="https://huggingface.co/docs/optimum/onnxruntime/overview" rel="nofollow">ONNX Runtime</a></li> <li><a href="https://huggingface.co/docs/optimum/bettertransformer/overview" rel="nofollow">BetterTransformer</a></li>',Rt,ve,Ft,Te,yi="Optimum is available as a pip package, <code>optimum</code>. To install the package, run the following command:",Gt,ce,qt,be,Mi='For installation of accelerator-specific features, see <a href="https://huggingface.co/docs/optimum/installation" rel="nofollow">here</a>.',St,xe,Wt,ye,Ci='For a hands-on guide on how to use Optimum for quantization, refer this <a href="https://github.com/huggingface/computer-vision-course/blob/main/notebooks/Unit%209%20-%20Model%20Optimization/optimum.ipynb" rel="nofollow">notebook</a>',At,Me,jt,Ce,Et,ke,ki=`Edge TPU is Google’s purpose-built ASIC designed to run AI at the edge. It delivers high performance in a small physical and power footprint, enabling the deployment of high-accuracy AI at the edge.
The benefits of using EdgeTPU includes:`,Xt,He,Hi="<li>Complements Cloud TPU and Google Cloud services to provide an end-to-end, cloud-to-edge, hardware + software infrastructure for AI-based solutions deployment</li> <li>High performance in a small physical and power footprint</li> <li>Combined custom hardware, open software, and state-of-the-art AI algorithms to provide high-quality, easy to deploy AI solutions for the edge</li>",Jt,Oe,Oi='For more details on EdgeTPU, see <a href="https://cloud.google.com/edge-tpu" rel="nofollow">here</a>',Vt,ze,zi='For guide on how to setup and use EdgeTPU, refer this <a href="https://github.com/huggingface/computer-vision-course/blob/main/notebooks/Unit%209%20-%20Model%20Optimization/edge_tpu.ipynb" rel="nofollow">notebook</a>',Bt,Pe,Qt,Ie,Dt;return w=new qi({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),v=new $({props:{title:"Model optimization tools and frameworks",local:"model-optimization-tools-and-frameworks",headingTag:"h1"}}),T=new $({props:{title:"Tensorflow Model optimization Toolkit (TMO)",local:"tensorflow-model-optimization-toolkit-tmo",headingTag:"h2"}}),c=new $({props:{title:"Overview",local:"overview",headingTag:"h3"}}),x=new $({props:{title:"Setup guide",local:"setup-guide",headingTag:"h3"}}),M=new Le({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1VJTIwdGVuc29yZmxvdy1tb2RlbC1vcHRpbWl6YXRpb24=",highlighted:'pip <span class="hljs-keyword">install</span> -U tensorflow-model-optimization',wrap:!1}}),C=new $({props:{title:"Hands-on guide",local:"hands-on-guide",headingTag:"h3"}}),H=new $({props:{title:"PyTorch Quantization",local:"pytorch-quantization",headingTag:"h2"}}),O=new $({props:{title:"Overview",local:"overview",headingTag:"h3"}}),_=new $({props:{title:"Setup guide",local:"setup-guide",headingTag:"h3"}}),N=new Le({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRvcmNoJTBBaW1wb3J0JTIwdG9yY2gucXVhbnRpemF0aW9u",highlighted:`<span class="hljs-title">pip</span> install torch
<span class="hljs-keyword">import</span> torch.quantization`,wrap:!1}}),U=new $({props:{title:"Hands-on guide",local:"hands-on-guide",headingTag:"h2"}}),F=new $({props:{title:"ONNX Runtime",local:"onnx-runtime",headingTag:"h2"}}),G=new $({props:{title:"Overview",local:"overview",headingTag:"h3"}}),A=new $({props:{title:"Setup guide",local:"setup-guide",headingTag:"h3"}}),E=new Le({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9ubnhydW50aW1l",highlighted:'pip <span class="hljs-keyword">install</span> onnxruntime',wrap:!1}}),J=new Le({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9ubnhydW50aW1lLWdwdQ==",highlighted:'pip <span class="hljs-keyword">install</span> onnxruntime-gpu',wrap:!1}}),V=new $({props:{title:"Hands-on guide",local:"hands-on-guide",headingTag:"h3"}}),Q=new $({props:{title:"TensorRT",local:"tensorrt",headingTag:"h2"}}),D=new $({props:{title:"Overview",local:"overview",headingTag:"h3"}}),Y=new $({props:{title:"Setup guide",local:"setup-guide",headingTag:"h3"}}),ee=new Le({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRlbnNvcnJ0",highlighted:'pip <span class="hljs-keyword">install</span> tensorrt',wrap:!1}}),ie=new $({props:{title:"Hands-on guide",local:"hands-on-guide",headingTag:"h3"}}),le=new $({props:{title:"OpenVINO",local:"openvino",headingTag:"h2"}}),oe=new $({props:{title:"Overview",local:"overview",headingTag:"h3"}}),re=new $({props:{title:"Setup guide",local:"setup-guide",headingTag:"h3"}}),me=new Le({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9wZW52aW5v",highlighted:'pip <span class="hljs-keyword">install</span> openvino',wrap:!1}}),ue=new $({props:{title:"Hands-on guide",local:"hands-on-guide",headingTag:"h3"}}),ge=new $({props:{title:"Optimum",local:"optimum",headingTag:"h2"}}),$e=new $({props:{title:"Overview",local:"overview",headingTag:"h3"}}),ve=new $({props:{title:"Setup guide",local:"setup-guide",headingTag:"h3"}}),ce=new Le({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9wdGltdW0=",highlighted:'pip <span class="hljs-keyword">install</span> optimum',wrap:!1}}),xe=new $({props:{title:"Hands-on guide",local:"hands-on-guide",headingTag:"h3"}}),Me=new $({props:{title:"EdgeTPU",local:"edgetpu",headingTag:"h2"}}),Ce=new $({props:{title:"Overview",local:"overview",headingTag:"h3"}}),Pe=new Si({props:{source:"https://github.com/huggingface/computer-vision-course/blob/main/chapters/en/unit9/tools_and_frameworks.mdx"}}),{c(){h=u("meta"),Ne=l(),_e=u("p"),Ue=l(),a(w.$$.fragment),Re=l(),a(v.$$.fragment),Fe=l(),a(T.$$.fragment),Ge=l(),a(c.$$.fragment),qe=l(),b=u("p"),b.textContent=Yt,Se=l(),a(x.$$.fragment),We=l(),y=u("p"),y.innerHTML=Zt,Ae=l(),a(M.$$.fragment),je=l(),a(C.$$.fragment),Ee=l(),k=u("p"),k.innerHTML=ei,Xe=l(),a(H.$$.fragment),Je=l(),a(O.$$.fragment),Ve=l(),z=u("p"),z.textContent=ti,Be=l(),P=u("ol"),P.innerHTML=ii,Qe=l(),L=u("p"),L.innerHTML=ni,De=l(),a(_.$$.fragment),Ke=l(),I=u("p"),I.textContent=li,Ye=l(),a(N.$$.fragment),Ze=l(),a(U.$$.fragment),et=l(),R=u("p"),R.innerHTML=oi,tt=l(),a(F.$$.fragment),it=l(),a(G.$$.fragment),nt=l(),q=u("p"),q.textContent=ai,lt=l(),S=u("ul"),S.innerHTML=si,ot=l(),W=u("p"),W.innerHTML=ri,at=l(),a(A.$$.fragment),st=l(),j=u("p"),j.textContent=pi,rt=l(),a(E.$$.fragment),pt=l(),X=u("p"),X.textContent=mi,mt=l(),a(J.$$.fragment),ft=l(),a(V.$$.fragment),ut=l(),B=u("p"),B.innerHTML=fi,dt=l(),a(Q.$$.fragment),gt=l(),a(D.$$.fragment),$t=l(),K=u("p"),K.textContent=ui,ht=l(),a(Y.$$.fragment),wt=l(),Z=u("p"),Z.innerHTML=di,vt=l(),a(ee.$$.fragment),Tt=l(),te=u("p"),te.innerHTML=gi,ct=l(),a(ie.$$.fragment),bt=l(),ne=u("p"),ne.innerHTML=$i,xt=l(),a(le.$$.fragment),yt=l(),a(oe.$$.fragment),Mt=l(),ae=u("p"),ae.textContent=hi,Ct=l(),se=u("ul"),se.innerHTML=wi,kt=l(),a(re.$$.fragment),Ht=l(),pe=u("p"),pe.innerHTML=vi,Ot=l(),a(me.$$.fragment),zt=l(),fe=u("p"),fe.innerHTML=Ti,Pt=l(),a(ue.$$.fragment),Lt=l(),de=u("p"),de.innerHTML=ci,_t=l(),a(ge.$$.fragment),It=l(),a($e.$$.fragment),Nt=l(),he=u("p"),he.innerHTML=bi,Ut=l(),we=u("ol"),we.innerHTML=xi,Rt=l(),a(ve.$$.fragment),Ft=l(),Te=u("p"),Te.innerHTML=yi,Gt=l(),a(ce.$$.fragment),qt=l(),be=u("p"),be.innerHTML=Mi,St=l(),a(xe.$$.fragment),Wt=l(),ye=u("p"),ye.innerHTML=Ci,At=l(),a(Me.$$.fragment),jt=l(),a(Ce.$$.fragment),Et=l(),ke=u("p"),ke.textContent=ki,Xt=l(),He=u("ul"),He.innerHTML=Hi,Jt=l(),Oe=u("p"),Oe.innerHTML=Oi,Vt=l(),ze=u("p"),ze.innerHTML=zi,Bt=l(),a(Pe.$$.fragment),Qt=l(),Ie=u("p"),this.h()},l(e){const t=Fi("svelte-u9bgzb",document.head);h=d(t,"META",{name:!0,content:!0}),t.forEach(i),Ne=o(e),_e=d(e,"P",{}),Pi(_e).forEach(i),Ue=o(e),s(w.$$.fragment,e),Re=o(e),s(v.$$.fragment,e),Fe=o(e),s(T.$$.fragment,e),Ge=o(e),s(c.$$.fragment,e),qe=o(e),b=d(e,"P",{"data-svelte-h":!0}),g(b)!=="svelte-fh85te"&&(b.textContent=Yt),Se=o(e),s(x.$$.fragment,e),We=o(e),y=d(e,"P",{"data-svelte-h":!0}),g(y)!=="svelte-179jdom"&&(y.innerHTML=Zt),Ae=o(e),s(M.$$.fragment,e),je=o(e),s(C.$$.fragment,e),Ee=o(e),k=d(e,"P",{"data-svelte-h":!0}),g(k)!=="svelte-161sgob"&&(k.innerHTML=ei),Xe=o(e),s(H.$$.fragment,e),Je=o(e),s(O.$$.fragment,e),Ve=o(e),z=d(e,"P",{"data-svelte-h":!0}),g(z)!=="svelte-rw5ja7"&&(z.textContent=ti),Be=o(e),P=d(e,"OL",{"data-svelte-h":!0}),g(P)!=="svelte-vdgwbj"&&(P.innerHTML=ii),Qe=o(e),L=d(e,"P",{"data-svelte-h":!0}),g(L)!=="svelte-197gxwz"&&(L.innerHTML=ni),De=o(e),s(_.$$.fragment,e),Ke=o(e),I=d(e,"P",{"data-svelte-h":!0}),g(I)!=="svelte-1p9288j"&&(I.textContent=li),Ye=o(e),s(N.$$.fragment,e),Ze=o(e),s(U.$$.fragment,e),et=o(e),R=d(e,"P",{"data-svelte-h":!0}),g(R)!=="svelte-9ipgwg"&&(R.innerHTML=oi),tt=o(e),s(F.$$.fragment,e),it=o(e),s(G.$$.fragment,e),nt=o(e),q=d(e,"P",{"data-svelte-h":!0}),g(q)!=="svelte-126giqx"&&(q.textContent=ai),lt=o(e),S=d(e,"UL",{"data-svelte-h":!0}),g(S)!=="svelte-12bh83j"&&(S.innerHTML=si),ot=o(e),W=d(e,"P",{"data-svelte-h":!0}),g(W)!=="svelte-v5aru9"&&(W.innerHTML=ri),at=o(e),s(A.$$.fragment,e),st=o(e),j=d(e,"P",{"data-svelte-h":!0}),g(j)!=="svelte-ey7nvx"&&(j.textContent=pi),rt=o(e),s(E.$$.fragment,e),pt=o(e),X=d(e,"P",{"data-svelte-h":!0}),g(X)!=="svelte-1ktucuj"&&(X.textContent=mi),mt=o(e),s(J.$$.fragment,e),ft=o(e),s(V.$$.fragment,e),ut=o(e),B=d(e,"P",{"data-svelte-h":!0}),g(B)!=="svelte-1clem1o"&&(B.innerHTML=fi),dt=o(e),s(Q.$$.fragment,e),gt=o(e),s(D.$$.fragment,e),$t=o(e),K=d(e,"P",{"data-svelte-h":!0}),g(K)!=="svelte-17idhxm"&&(K.textContent=ui),ht=o(e),s(Y.$$.fragment,e),wt=o(e),Z=d(e,"P",{"data-svelte-h":!0}),g(Z)!=="svelte-ap1fh1"&&(Z.innerHTML=di),vt=o(e),s(ee.$$.fragment,e),Tt=o(e),te=d(e,"P",{"data-svelte-h":!0}),g(te)!=="svelte-xkn92o"&&(te.innerHTML=gi),ct=o(e),s(ie.$$.fragment,e),bt=o(e),ne=d(e,"P",{"data-svelte-h":!0}),g(ne)!=="svelte-yi09qg"&&(ne.innerHTML=$i),xt=o(e),s(le.$$.fragment,e),yt=o(e),s(oe.$$.fragment,e),Mt=o(e),ae=d(e,"P",{"data-svelte-h":!0}),g(ae)!=="svelte-mh4ae3"&&(ae.textContent=hi),Ct=o(e),se=d(e,"UL",{"data-svelte-h":!0}),g(se)!=="svelte-gads39"&&(se.innerHTML=wi),kt=o(e),s(re.$$.fragment,e),Ht=o(e),pe=d(e,"P",{"data-svelte-h":!0}),g(pe)!=="svelte-n0ajdp"&&(pe.innerHTML=vi),Ot=o(e),s(me.$$.fragment,e),zt=o(e),fe=d(e,"P",{"data-svelte-h":!0}),g(fe)!=="svelte-1udfge"&&(fe.innerHTML=Ti),Pt=o(e),s(ue.$$.fragment,e),Lt=o(e),de=d(e,"P",{"data-svelte-h":!0}),g(de)!=="svelte-wtvd7o"&&(de.innerHTML=ci),_t=o(e),s(ge.$$.fragment,e),It=o(e),s($e.$$.fragment,e),Nt=o(e),he=d(e,"P",{"data-svelte-h":!0}),g(he)!=="svelte-1i2e49n"&&(he.innerHTML=bi),Ut=o(e),we=d(e,"OL",{"data-svelte-h":!0}),g(we)!=="svelte-14x2ukl"&&(we.innerHTML=xi),Rt=o(e),s(ve.$$.fragment,e),Ft=o(e),Te=d(e,"P",{"data-svelte-h":!0}),g(Te)!=="svelte-1ef21rr"&&(Te.innerHTML=yi),Gt=o(e),s(ce.$$.fragment,e),qt=o(e),be=d(e,"P",{"data-svelte-h":!0}),g(be)!=="svelte-18xxmzz"&&(be.innerHTML=Mi),St=o(e),s(xe.$$.fragment,e),Wt=o(e),ye=d(e,"P",{"data-svelte-h":!0}),g(ye)!=="svelte-qxqqm3"&&(ye.innerHTML=Ci),At=o(e),s(Me.$$.fragment,e),jt=o(e),s(Ce.$$.fragment,e),Et=o(e),ke=d(e,"P",{"data-svelte-h":!0}),g(ke)!=="svelte-fnz1ur"&&(ke.textContent=ki),Xt=o(e),He=d(e,"UL",{"data-svelte-h":!0}),g(He)!=="svelte-1pwd1w8"&&(He.innerHTML=Hi),Jt=o(e),Oe=d(e,"P",{"data-svelte-h":!0}),g(Oe)!=="svelte-1vsiith"&&(Oe.innerHTML=Oi),Vt=o(e),ze=d(e,"P",{"data-svelte-h":!0}),g(ze)!=="svelte-snl1a5"&&(ze.innerHTML=zi),Bt=o(e),s(Pe.$$.fragment,e),Qt=o(e),Ie=d(e,"P",{}),Pi(Ie).forEach(i),this.h()},h(){Li(h,"name","hf:doc:metadata"),Li(h,"content",Ai)},m(e,t){Gi(document.head,h),n(e,Ne,t),n(e,_e,t),n(e,Ue,t),r(w,e,t),n(e,Re,t),r(v,e,t),n(e,Fe,t),r(T,e,t),n(e,Ge,t),r(c,e,t),n(e,qe,t),n(e,b,t),n(e,Se,t),r(x,e,t),n(e,We,t),n(e,y,t),n(e,Ae,t),r(M,e,t),n(e,je,t),r(C,e,t),n(e,Ee,t),n(e,k,t),n(e,Xe,t),r(H,e,t),n(e,Je,t),r(O,e,t),n(e,Ve,t),n(e,z,t),n(e,Be,t),n(e,P,t),n(e,Qe,t),n(e,L,t),n(e,De,t),r(_,e,t),n(e,Ke,t),n(e,I,t),n(e,Ye,t),r(N,e,t),n(e,Ze,t),r(U,e,t),n(e,et,t),n(e,R,t),n(e,tt,t),r(F,e,t),n(e,it,t),r(G,e,t),n(e,nt,t),n(e,q,t),n(e,lt,t),n(e,S,t),n(e,ot,t),n(e,W,t),n(e,at,t),r(A,e,t),n(e,st,t),n(e,j,t),n(e,rt,t),r(E,e,t),n(e,pt,t),n(e,X,t),n(e,mt,t),r(J,e,t),n(e,ft,t),r(V,e,t),n(e,ut,t),n(e,B,t),n(e,dt,t),r(Q,e,t),n(e,gt,t),r(D,e,t),n(e,$t,t),n(e,K,t),n(e,ht,t),r(Y,e,t),n(e,wt,t),n(e,Z,t),n(e,vt,t),r(ee,e,t),n(e,Tt,t),n(e,te,t),n(e,ct,t),r(ie,e,t),n(e,bt,t),n(e,ne,t),n(e,xt,t),r(le,e,t),n(e,yt,t),r(oe,e,t),n(e,Mt,t),n(e,ae,t),n(e,Ct,t),n(e,se,t),n(e,kt,t),r(re,e,t),n(e,Ht,t),n(e,pe,t),n(e,Ot,t),r(me,e,t),n(e,zt,t),n(e,fe,t),n(e,Pt,t),r(ue,e,t),n(e,Lt,t),n(e,de,t),n(e,_t,t),r(ge,e,t),n(e,It,t),r($e,e,t),n(e,Nt,t),n(e,he,t),n(e,Ut,t),n(e,we,t),n(e,Rt,t),r(ve,e,t),n(e,Ft,t),n(e,Te,t),n(e,Gt,t),r(ce,e,t),n(e,qt,t),n(e,be,t),n(e,St,t),r(xe,e,t),n(e,Wt,t),n(e,ye,t),n(e,At,t),r(Me,e,t),n(e,jt,t),r(Ce,e,t),n(e,Et,t),n(e,ke,t),n(e,Xt,t),n(e,He,t),n(e,Jt,t),n(e,Oe,t),n(e,Vt,t),n(e,ze,t),n(e,Bt,t),r(Pe,e,t),n(e,Qt,t),n(e,Ie,t),Dt=!0},p:Ii,i(e){Dt||(p(w.$$.fragment,e),p(v.$$.fragment,e),p(T.$$.fragment,e),p(c.$$.fragment,e),p(x.$$.fragment,e),p(M.$$.fragment,e),p(C.$$.fragment,e),p(H.$$.fragment,e),p(O.$$.fragment,e),p(_.$$.fragment,e),p(N.$$.fragment,e),p(U.$$.fragment,e),p(F.$$.fragment,e),p(G.$$.fragment,e),p(A.$$.fragment,e),p(E.$$.fragment,e),p(J.$$.fragment,e),p(V.$$.fragment,e),p(Q.$$.fragment,e),p(D.$$.fragment,e),p(Y.$$.fragment,e),p(ee.$$.fragment,e),p(ie.$$.fragment,e),p(le.$$.fragment,e),p(oe.$$.fragment,e),p(re.$$.fragment,e),p(me.$$.fragment,e),p(ue.$$.fragment,e),p(ge.$$.fragment,e),p($e.$$.fragment,e),p(ve.$$.fragment,e),p(ce.$$.fragment,e),p(xe.$$.fragment,e),p(Me.$$.fragment,e),p(Ce.$$.fragment,e),p(Pe.$$.fragment,e),Dt=!0)},o(e){m(w.$$.fragment,e),m(v.$$.fragment,e),m(T.$$.fragment,e),m(c.$$.fragment,e),m(x.$$.fragment,e),m(M.$$.fragment,e),m(C.$$.fragment,e),m(H.$$.fragment,e),m(O.$$.fragment,e),m(_.$$.fragment,e),m(N.$$.fragment,e),m(U.$$.fragment,e),m(F.$$.fragment,e),m(G.$$.fragment,e),m(A.$$.fragment,e),m(E.$$.fragment,e),m(J.$$.fragment,e),m(V.$$.fragment,e),m(Q.$$.fragment,e),m(D.$$.fragment,e),m(Y.$$.fragment,e),m(ee.$$.fragment,e),m(ie.$$.fragment,e),m(le.$$.fragment,e),m(oe.$$.fragment,e),m(re.$$.fragment,e),m(me.$$.fragment,e),m(ue.$$.fragment,e),m(ge.$$.fragment,e),m($e.$$.fragment,e),m(ve.$$.fragment,e),m(ce.$$.fragment,e),m(xe.$$.fragment,e),m(Me.$$.fragment,e),m(Ce.$$.fragment,e),m(Pe.$$.fragment,e),Dt=!1},d(e){e&&(i(Ne),i(_e),i(Ue),i(Re),i(Fe),i(Ge),i(qe),i(b),i(Se),i(We),i(y),i(Ae),i(je),i(Ee),i(k),i(Xe),i(Je),i(Ve),i(z),i(Be),i(P),i(Qe),i(L),i(De),i(Ke),i(I),i(Ye),i(Ze),i(et),i(R),i(tt),i(it),i(nt),i(q),i(lt),i(S),i(ot),i(W),i(at),i(st),i(j),i(rt),i(pt),i(X),i(mt),i(ft),i(ut),i(B),i(dt),i(gt),i($t),i(K),i(ht),i(wt),i(Z),i(vt),i(Tt),i(te),i(ct),i(bt),i(ne),i(xt),i(yt),i(Mt),i(ae),i(Ct),i(se),i(kt),i(Ht),i(pe),i(Ot),i(zt),i(fe),i(Pt),i(Lt),i(de),i(_t),i(It),i(Nt),i(he),i(Ut),i(we),i(Rt),i(Ft),i(Te),i(Gt),i(qt),i(be),i(St),i(Wt),i(ye),i(At),i(jt),i(Et),i(ke),i(Xt),i(He),i(Jt),i(Oe),i(Vt),i(ze),i(Bt),i(Qt),i(Ie)),i(h),f(w,e),f(v,e),f(T,e),f(c,e),f(x,e),f(M,e),f(C,e),f(H,e),f(O,e),f(_,e),f(N,e),f(U,e),f(F,e),f(G,e),f(A,e),f(E,e),f(J,e),f(V,e),f(Q,e),f(D,e),f(Y,e),f(ee,e),f(ie,e),f(le,e),f(oe,e),f(re,e),f(me,e),f(ue,e),f(ge,e),f($e,e),f(ve,e),f(ce,e),f(xe,e),f(Me,e),f(Ce,e),f(Pe,e)}}}const Ai='{"title":"Model optimization tools and frameworks","local":"model-optimization-tools-and-frameworks","sections":[{"title":"Tensorflow Model optimization Toolkit (TMO)","local":"tensorflow-model-optimization-toolkit-tmo","sections":[{"title":"Overview","local":"overview","sections":[],"depth":3},{"title":"Setup guide","local":"setup-guide","sections":[],"depth":3},{"title":"Hands-on guide","local":"hands-on-guide","sections":[],"depth":3}],"depth":2},{"title":"PyTorch Quantization","local":"pytorch-quantization","sections":[{"title":"Overview","local":"overview","sections":[],"depth":3},{"title":"Setup guide","local":"setup-guide","sections":[],"depth":3}],"depth":2},{"title":"Hands-on guide","local":"hands-on-guide","sections":[],"depth":2},{"title":"ONNX Runtime","local":"onnx-runtime","sections":[{"title":"Overview","local":"overview","sections":[],"depth":3},{"title":"Setup guide","local":"setup-guide","sections":[],"depth":3},{"title":"Hands-on guide","local":"hands-on-guide","sections":[],"depth":3}],"depth":2},{"title":"TensorRT","local":"tensorrt","sections":[{"title":"Overview","local":"overview","sections":[],"depth":3},{"title":"Setup guide","local":"setup-guide","sections":[],"depth":3},{"title":"Hands-on guide","local":"hands-on-guide","sections":[],"depth":3}],"depth":2},{"title":"OpenVINO","local":"openvino","sections":[{"title":"Overview","local":"overview","sections":[],"depth":3},{"title":"Setup guide","local":"setup-guide","sections":[],"depth":3},{"title":"Hands-on guide","local":"hands-on-guide","sections":[],"depth":3}],"depth":2},{"title":"Optimum","local":"optimum","sections":[{"title":"Overview","local":"overview","sections":[],"depth":3},{"title":"Setup guide","local":"setup-guide","sections":[],"depth":3},{"title":"Hands-on guide","local":"hands-on-guide","sections":[],"depth":3}],"depth":2},{"title":"EdgeTPU","local":"edgetpu","sections":[{"title":"Overview","local":"overview","sections":[],"depth":3}],"depth":2}],"depth":1}';function ji(Kt){return Ni(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Qi extends Ui{constructor(h){super(),Ri(this,h,ji,Wi,_i,{})}}export{Qi as component};
