Merge pull request #30344 from Dayananda-V:tflite_smartreply_fix
PiperOrigin-RevId: 261336485
This commit is contained in:
commit
f96132866c
@ -53,8 +53,13 @@ public class SmartReplyClient implements AutoCloseable {
|
|||||||
@WorkerThread
|
@WorkerThread
|
||||||
public synchronized void loadModel() {
|
public synchronized void loadModel() {
|
||||||
if (!isLibraryLoaded) {
|
if (!isLibraryLoaded) {
|
||||||
|
try {
|
||||||
System.loadLibrary(JNI_LIB);
|
System.loadLibrary(JNI_LIB);
|
||||||
isLibraryLoaded = true;
|
isLibraryLoaded = true;
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "Failed to load prebuilt smartreply_jni lib", e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user