• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7     http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ==============================================================================*/
15 
16 #ifndef TENSORFLOW_JAVA_SRC_MAIN_NATIVE_SESSION_JNI_H_
17 #define TENSORFLOW_JAVA_SRC_MAIN_NATIVE_SESSION_JNI_H_
18 
19 #include <jni.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /*
26  * Class:     org_tensorflow_Session
27  * Method:    allocate
28  * Signature: (J)J
29  */
30 JNIEXPORT jlong JNICALL Java_org_tensorflow_Session_allocate(JNIEnv *, jclass,
31                                                              jlong);
32 
33 /*
34  * Class:     org_tensorflow_Session
35  * Method:    allocate2
36  * Signature: (JLjava/lang/String;[B)J
37  */
38 JNIEXPORT jlong JNICALL Java_org_tensorflow_Session_allocate2(JNIEnv *, jclass,
39                                                               jlong, jstring,
40                                                               jbyteArray);
41 
42 /*
43  * Class:     org_tensorflow_Session
44  * Method:    delete
45  * Signature: (J)V
46  */
47 JNIEXPORT void JNICALL Java_org_tensorflow_Session_delete(JNIEnv *, jclass,
48                                                           jlong);
49 
50 /*
51  * Class:     org_tensorflow_Session
52  * Method:    run
53  * Signature: (J[B[J[J[I[J[I[JZ[J)[B
54  */
55 JNIEXPORT jbyteArray JNICALL Java_org_tensorflow_Session_run(
56     JNIEnv *, jclass, jlong, jbyteArray, jlongArray, jlongArray, jintArray,
57     jlongArray, jintArray, jlongArray, jboolean, jlongArray);
58 
59 #ifdef __cplusplus
60 }  // extern "C"
61 #endif  // __cplusplus
62 #endif  // TENSORFLOW_JAVA_SRC_MAIN_NATIVE_SESSION_JNI_H_
63