Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit a0dd544

Browse files
committed
change the wording and log level to be more in line with the general use
case of loading from the jar
1 parent 4e03e6a commit a0dd544

File tree

1 file changed

+6
-7
lines changed
  • scala-package/core/src/main/scala/org/apache/mxnet

1 file changed

+6
-7
lines changed

scala-package/core/src/main/scala/org/apache/mxnet/Base.scala

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,17 @@ private[mxnet] object Base {
6262
// The primitives currently supported for NDArray operations
6363
val MX_PRIMITIVES = new Group ((Double, Float))
6464

65+
66+
/* Find the native libray either on the path or copy it from
67+
* the jar in the dependency
68+
* jar into a temp directory and load it
69+
*/
6570
try {
6671
try {
6772
tryLoadLibraryOS("mxnet-scala")
6873
} catch {
6974
case e: UnsatisfiedLinkError =>
70-
logger.warn("MXNet Scala native library not found in path. " +
71-
"Copying native library from the archive. " +
72-
"Consider installing the library somewhere in the path " +
73-
"(for Windows: PATH, for Linux: LD_LIBRARY_PATH), " +
74-
"or specifying by Java cmd option -Djava.library.path=[lib path].")
75-
logger.warn("LD_LIBRARY_PATH=" + System.getenv("LD_LIBRARY_PATH"))
76-
logger.warn("java.library.path=" + System.getProperty("java.library.path"))
75+
logger.info("Copying and loading native library from the jar archive")
7776
NativeLibraryLoader.loadLibrary("mxnet-scala")
7877
}
7978
} catch {

0 commit comments

Comments
 (0)