Forums - SNPE.NeuralNetworkBuilder Crash and no debug message

1 post / 0 new
SNPE.NeuralNetworkBuilder Crash and no debug message
meow meow
Join Date: 11 Mar 18
Posts: 6
Posted: Mon, 2018-03-12 22:37
@Override
protected NeuralNetwork doInBackground(File... params) {
    NeuralNetwork network = null;
    try {
        Log.e(LOG_TAG, "SNPE Start To Build" ) ;
        final SNPE.NeuralNetworkBuilder builder = new SNPE.NeuralNetworkBuilder(mApplication)
                .setDebugEnabled(true) // will show: snpe-android: Building SNPE instance...
                .setRuntimeOrder(mTargetRuntime)
                .setCpuFallbackEnabled(true)
                .setModel(mModel.file);
        network = builder.build();
        Log.e(LOG_TAG, "SNPE NeuralNetwork Builder is build ok, can't reach here") ;
        Log.e(LOG_TAG, "SNPE outputs:" + network.getOutputLayers() ) ;
    } catch (IllegalStateException | IOException e) {
        Log.e(LOG_TAG, e.getMessage(), e);
    }
    catch (Exception e) {
        Log.e(LOG_TAG, "Can't Catch anything here:" + e.getMessage(), e);
    }
    return network;
}

HI everyone

I already convert pb to dlc with tools.

I can run the sample alexnet and inception_v3.

when i replace the dlc with my custom model, the android crash immediately.

 

the java try-catch can't catch anything for me

can anyone help?

snpe 1.13.0.0 android sample

thankyou 

 

  • Up0
  • Down0

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.