Closed Noricks closed 3 years ago
For android project, DJL currently only support pytorch engine. There is some effort to support MXNet for android, but we don't have a concrete plan yet.
@Noricks Close the issue for now. If you would like to have TFLite Android support, please feel free to open another issue. Note: We now have TFLite for Server, but not for Android. But we are open to the community if anyone is looking for a build.
General Information of the Questions
First of all, thank you for reading my post.
Sorry for the long post. For me, the problem is hard to identify. So I post all the related information which I think is useful.
System Info
Target Platform:
Developing Platform:
build.grandle
(Build Script):Related Code
General exception
The line exception occurs:
Exception:
This exception is highly related to file:
ai.djl.tensorflow.engine.TfEngine
Related Code:There are two questions behind this exception:
LibUtils.loadLibrary();
EagerSession.getDefault();
Question 1:
The question is related to
LibUtils.loadLibrary();
.Is the program have to download the
TensorFlow
binary throughLibUtils.downloadTensorFlow(Platform platform)
at first run?If the problem is caused by my in-appropriate build script, could you help me to fix it?
Question 2:
The question is related to
EagerSession.getDefault();
After downloading the
TensorFlow
binary throughLibUtils.downloadTensorFlow(Platform platform)
, an exception will occur when the program tries to initialize theTensorFlow
.The decompiler shows that the exception is thrown by
TensorFlow.init()
inTensorflow.class
.