Merge pull request #30344 from Dayananda-V:tflite_smartreply_fix

PiperOrigin-RevId: 261336485
This commit is contained in:
TensorFlower Gardener 2019-08-02 10:04:37 -07:00
commit f96132866c

View File

@ -53,8 +53,13 @@ public class SmartReplyClient implements AutoCloseable {
@WorkerThread
public synchronized void loadModel() {
if (!isLibraryLoaded) {
System.loadLibrary(JNI_LIB);
isLibraryLoaded = true;
try {
System.loadLibrary(JNI_LIB);
isLibraryLoaded = true;
} catch (Exception e) {
Log.e(TAG, "Failed to load prebuilt smartreply_jni lib", e);
return;
}
}
try {