2 * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /* DO NOT EDIT THIS FILE - it is machine generated */
19 /* Header for class com_samsung_onert_NativeSessionWrapper */
21 #ifndef _Included_com_samsung_onert_NativeSessionWrapper
22 #define _Included_com_samsung_onert_NativeSessionWrapper
27 * Class: com_samsung_onert_NativeSessionWrapper
28 * Method: nativeCreateSession
31 JNIEXPORT jlong JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeCreateSession(JNIEnv *,
35 * Class: com_samsung_onert_NativeSessionWrapper
36 * Method: nativeCloseSession
39 JNIEXPORT void JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeCloseSession(JNIEnv *,
44 * Class: com_samsung_onert_NativeSessionWrapper
45 * Method: nativeLoadModelFromFile
46 * Signature: (JLjava/lang/String;)Z
48 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeLoadModelFromFile(
49 JNIEnv *, jobject, jlong, jstring);
52 * Class: com_samsung_onert_NativeSessionWrapper
53 * Method: nativePrepare
56 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativePrepare(JNIEnv *,
61 * Class: com_samsung_onert_NativeSessionWrapper
65 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeRun(JNIEnv *, jobject,
69 * Class: com_samsung_onert_NativeSessionWrapper
70 * Method: nativeSetInput
71 * Signature: (JIILjava/nio/ByteBuffer;I)Z
73 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetInput(
74 JNIEnv *, jobject, jlong, jint, jint, jobject, jint);
77 * Class: com_samsung_onert_NativeSessionWrapper
78 * Method: nativeSetOutput
79 * Signature: (JIILjava/nio/ByteBuffer;I)Z
81 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetOutput(
82 JNIEnv *, jobject, jlong, jint, jint, jobject, jint);
85 * Class: com_samsung_onert_NativeSessionWrapper
86 * Method: nativeSetInputLayout
89 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetInputLayout(
90 JNIEnv *, jobject, jlong, jint, jint);
93 * Class: com_samsung_onert_NativeSessionWrapper
94 * Method: nativeSetOutputLayout
97 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetOutputLayout(
98 JNIEnv *, jobject, jlong, jint, jint);
101 * Class: com_samsung_onert_NativeSessionWrapper
102 * Method: nativeGetInputSize
105 JNIEXPORT jint JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetInputSize(JNIEnv *,
110 * Class: com_samsung_onert_NativeSessionWrapper
111 * Method: nativeGetOutputSize
114 JNIEXPORT jint JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetOutputSize(JNIEnv *,
119 * Class: com_samsung_onert_NativeSessionWrapper
120 * Method: nativeGetInputTensorInfo
121 * Signature: (JILcom/samsung/onert/NativeSessionWrapper/InternalTensorInfo;)Z
123 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetInputTensorInfo(
124 JNIEnv *, jobject, jlong, jint, jobject);
127 * Class: com_samsung_onert_NativeSessionWrapper
128 * Method: nativeGetOutputTensorInfo
129 * Signature: (JILcom/samsung/onert/NativeSessionWrapper/InternalTensorInfo;)Z
131 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetOutputTensorInfo(
132 JNIEnv *, jobject, jlong, jint, jobject);
135 * Class: com_samsung_onert_NativeSessionWrapper
136 * Method: nativeSetAvailableBackends
137 * Signature: (JLjava/lang/String;)Z
139 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetAvailableBackends(
140 JNIEnv *, jobject, jlong, jstring);