Forums - How to use UserBufferTensor which encoding type is FLOAT from Java API

2 posts / 0 new
Last post
How to use UserBufferTensor which encoding type is FLOAT from Java API
kazuki
Join Date: 8 Jan 21
Posts: 1
Posted: Thu, 2021-01-28 18:16

Thank you for providing the awesome SDK. I'm developing the Android app with this SDK of version 1.45.3.2435. Following the document of Android tutorial, I could execute the inference on my Android device GPU. However, it's performance is not enough for me. I would like to accelerate the inference speed. So, I tried to use UserBuffer according to the document of performance tips.

Android tutorial document is here. https://developer.qualcomm.com/docs/snpe/android_tutorial.html

Performance tips document is here. https://developer.qualcomm.com/docs/snpe/prog_performance.html

I can find the TF8UserBufferTensor class that extends the UserBufferTensor class in Java API document. But there is no FLOATUserBufferTensor in the document and no method to instantiate the UserBufferTensor that has the FLOAT type of encoding. So, how can I use the UserBufferTensor that has the FLOAT type from Java API?

I would appreciate it if you could reply.

  • Up0
  • Down0
ss.pandiri
Join Date: 29 May 18
Posts: 58
Posted: Sun, 2021-02-14 22:55
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.