Skip to content

Tflite Neuron delegate fails to apply NNAPI delegate on MT6893 #12

@adarsh044

Description

@adarsh044

I am trying to run a tflite SR model (few convolution layers & casting layer) on the MT6893 using an Android app with NeuronDelegate ,added as AAR dependency.

I declared the Neurondelegate class like this :

`public NeuronDelegate neuronDelegate;
neuronDelegate = new NeuronDelegate();

......

new Interpreter.Options().addDelegate(neuronDelegate).setNumThreads(4))
`

I get the following logs :
`
I neuron error: Neuron adapter API exists: 0
I Found interface mtk-dsp (version = ACCELERATOR_APUSYS)
I Found interface mtk-gpu (version = ACCELERATOR_APUSYS)
I Found interface mtk-mdla (version = ACCELERATOR_APUSYS)
I Found interface mtk-neuron (version = ACCELERATOR_APUSYS)
I Created TensorFlow Lite delegate for NNAPI.
Internal error: Failed to apply delegate: NN API returned error ANEURALNETWORKS_BAD_DATA at line 4483 while completing NNAPI compilation.

`
So Error here is :

  1. Failed to apply delegate: NN API returned error ANEURALNETWORKS_BAD_DATA at line 4483 while completing NNAPI compilation.
  2. I neuron error: Neuron adapter API exists: 0

What could be the error here : Is there something wrong with the declaration , if not what could be the error here. ?

Regards
Adarsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions