Forums - SNPE SDK optimisation features

2 posts / 0 new
Last post
SNPE SDK optimisation features
sea_1
Join Date: 30 Aug 18
Posts: 1
Posted: Wed, 2018-09-12 00:44

Hello,

I just started learning about the SNPE and I have two basic questions: 

  1. What optimisation features except for quantisation does the SNPE SDK support? For example pruning or weight sharing?
  2. How does the SNPE SDK decide, on which device (CPU, GPU, DSP) the network will be executed? Can I specify that myself?

Thanks and kind regards,

Samir

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Tue, 2019-01-29 21:11
Yes, you can specify the same while building your neural network.
 
final SNPE.NeuralNetworkBuilder builder = new SNPE.NeuralNetworkBuilder(application)
// Allows selecting a runtime order for the network.
// In the example below use DSP and fall back, in order, to GPU then CPU
// depending on whether any of the runtimes is available.
*.setRuntimeOrder(DSP, GPU, CPU)*
// Loads a model from DLC file
.setModel(new File("<model-path>"));
final NeuralNetwork network = builder.build();
 
  • 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.