model_zoo/ernie-tiny/deploy/android/ernie_tiny/src/main/java/com/baidu/paddle/paddlenlp/ernie_tiny/Initializer.java
<filename>model_zoo/ernie-tiny/deploy/android/ernie_tiny/src/main/java/com/baidu/paddle/paddlenlp/ernie_tiny/Initializer.java<gh_stars>0package com.baidu.paddle.paddlenlp.ernie_tiny;

/**
 * Initializer for ERNIE Tiny. The initialization methods are called by package
 * classes only. Public users don't have to call them. Public users can get
 * FastDeploy information constants such as JNI lib name in this class.
 */
public class Initializer {
    /** name of C++ JNI lib */
    public final static String JNI_LIB_NAME = "ernie_tiny_jni";

    /**
     * loads the C++ JNI lib. We only call it in our package, so it shouldn't be
     * visible to public users.
     *
     * @return true if initialize successfully.
     */
    public static boolean init() {
        System.loadLibrary(JNI_LIB_NAME);
        return true;
    }
}
