Fix inference_interface tests
PiperOrigin-RevId: 302052660 Change-Id: Id1a5adb077d1736d8f79b4d9b98ed3e1ff58126d
This commit is contained in:
parent
5cc23b291b
commit
73e780cbc2
@ -87,3 +87,8 @@ cc_binary(
|
|||||||
LINKER_SCRIPT,
|
LINKER_SCRIPT,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cc_library(
|
||||||
|
name = "android_tensorflow_inference_native",
|
||||||
|
srcs = if_android([":libtensorflow_inference.so"]),
|
||||||
|
)
|
||||||
|
|||||||
@ -543,7 +543,8 @@ public class TensorFlowInferenceInterface {
|
|||||||
} catch (UnsatisfiedLinkError e2) {
|
} catch (UnsatisfiedLinkError e2) {
|
||||||
throw new RuntimeException(
|
throw new RuntimeException(
|
||||||
"Native TF methods not found; check that the correct native"
|
"Native TF methods not found; check that the correct native"
|
||||||
+ " libraries are present in the APK.");
|
+ " libraries are present in the APK: "
|
||||||
|
+ e2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user