tensor_jni.h 2.9 KB
Newer Older
Y
Yan Chunwei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_baidu_paddle_lite_Tensor */

19 20
#ifndef LITE_API_ANDROID_JNI_NATIVE_TENSOR_JNI_H_
#define LITE_API_ANDROID_JNI_NATIVE_TENSOR_JNI_H_
Y
Yan Chunwei 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#ifdef __cplusplus
extern "C" {
#endif

namespace paddle {
namespace lite_api {

/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    shape
 * Signature: ()[J
 */
JNIEXPORT jlongArray JNICALL Java_com_baidu_paddle_lite_Tensor_shape(JNIEnv *,
                                                                     jobject);

/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    getFloatData
 * Signature: ()[F
 */
JNIEXPORT jfloatArray JNICALL
Java_com_baidu_paddle_lite_Tensor_getFloatData(JNIEnv *, jobject);

/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    getByteData
 * Signature: ()[B
 */
JNIEXPORT jbyteArray JNICALL
Java_com_baidu_paddle_lite_Tensor_getByteData(JNIEnv *, jobject);

52 53 54 55 56 57 58 59
/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    getIntData
 * Signature: ()[I
 */
JNIEXPORT jintArray JNICALL
Java_com_baidu_paddle_lite_Tensor_getIntData(JNIEnv *, jobject);

Y
Yan Chunwei 已提交
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    nativeResize
 * Signature: ([J)Z
 */
JNIEXPORT jboolean JNICALL
Java_com_baidu_paddle_lite_Tensor_nativeResize(JNIEnv *, jobject, jlongArray);

/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    nativeSetData
 * Signature: ([F)Z
 */
JNIEXPORT jboolean JNICALL Java_com_baidu_paddle_lite_Tensor_nativeSetData___3F(
    JNIEnv *, jobject, jfloatArray);

/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    nativeSetData
 * Signature: ([B)Z
 */
JNIEXPORT jboolean JNICALL Java_com_baidu_paddle_lite_Tensor_nativeSetData___3B(
    JNIEnv *, jobject, jbyteArray);

84 85 86 87 88 89 90 91
/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    nativeSetData
 * Signature: ([I)Z
 */
JNIEXPORT jboolean JNICALL Java_com_baidu_paddle_lite_Tensor_nativeSetData___3I(
    JNIEnv *, jobject, jintArray);

Y
Yan Chunwei 已提交
92 93 94 95 96 97 98 99 100 101 102 103 104 105
/*
 * Class:     com_baidu_paddle_lite_Tensor
 * Method:    deleteCppTensor
 * Signature: (J)Z
 */
JNIEXPORT jboolean JNICALL
Java_com_baidu_paddle_lite_Tensor_deleteCppTensor(JNIEnv *, jobject, jlong);

}  // namespace lite_api
}  // namespace paddle

#ifdef __cplusplus
}
#endif
106
#endif  // LITE_API_ANDROID_JNI_NATIVE_TENSOR_JNI_H_