<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Use Hardware Acceleration with TFLite outside the voxl-tflite-server]]></title><description><![CDATA[<p dir="auto">For my given application, it is not practical for my case to be running the voxl-tflite-server all the time.  I have a python application that needs to perform a lot of inferences only some of the time.  My object detectors are in tflite format and currently run on the CPU.  I want to use the NPU on the voxl, but don't know where or how to load its delegates.  I thought maybe, just maybe the delegates might be in /usr/lib but I cannot get them to load in python (I get undefined symbol errors).</p>
<p dir="auto">Can someone point me to where I can find the delegate to load in python to use the NPU (on the VOXL2 does using the GPU really get to the NPU) or tell me what I need to do to compile a delegate to use the NPU?</p>
]]></description><link>https://forum.modalai.com/topic/2950/use-hardware-acceleration-with-tflite-outside-the-voxl-tflite-server</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 01:42:44 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/2950.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Dec 2023 21:37:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Use Hardware Acceleration with TFLite outside the voxl-tflite-server on Tue, 16 Jan 2024 20:43:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aharvey" aria-label="Profile: aharvey">@<bdi>aharvey</bdi></a></p>
<p dir="auto">I believe TFLite Delegate logic is available only in C++ per <a href="https://www.tensorflow.org/lite/performance/implementing_delegate" rel="nofollow ugc">TFLite Sources</a>. Likely you would want to implement your inference code in C++ anyways as on VOXL your inference times will likely be much faster than in Python.</p>
<p dir="auto">We have some example of assigning delegates inside our <code>voxl-tflite-server</code> source code, check out these lines: <a href="https://gitlab.com/voxl-public/voxl-sdk/services/voxl-tflite-server/-/blob/master/src/inference_helper.cpp#L216" rel="nofollow ugc">https://gitlab.com/voxl-public/voxl-sdk/services/voxl-tflite-server/-/blob/master/src/inference_helper.cpp#L216</a></p>
<p dir="auto">Hope this helps,</p>
<p dir="auto">Thomas<br />
<a href="mailto:thomas.patton@modalai.com" rel="nofollow ugc">thomas.patton@modalai.com</a></p>
]]></description><link>https://forum.modalai.com/post/13974</link><guid isPermaLink="true">https://forum.modalai.com/post/13974</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 16 Jan 2024 20:43:00 GMT</pubDate></item></channel></rss>