Browse Source

!4586 fix file head of file in mindspore/lite/java

Merge pull request !4586 from hangq/cafedead
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
bcb24c7944
16 changed files with 119 additions and 34 deletions
  1. +16
    -0
      mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/DataType.java
  2. +16
    -0
      mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/LiteSession.java
  3. +16
    -0
      mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/MSTensor.java
  4. +16
    -0
      mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/Model.java
  5. +16
    -0
      mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/context/Context.java
  6. +16
    -0
      mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/context/CpuBindMode.java
  7. +16
    -0
      mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/context/DeviceType.java
  8. +0
    -1
      mindspore/lite/java/native/CMakeLists.txt
  9. +1
    -2
      mindspore/lite/java/native/common/jni_utils.cpp
  10. +1
    -2
      mindspore/lite/java/native/common/jni_utils.h
  11. +0
    -19
      mindspore/lite/java/native/common/ms_log.cpp
  12. +1
    -2
      mindspore/lite/java/native/common/ms_log.h
  13. +1
    -2
      mindspore/lite/java/native/runtime/context.cpp
  14. +1
    -2
      mindspore/lite/java/native/runtime/lite_session.cpp
  15. +1
    -2
      mindspore/lite/java/native/runtime/model.cpp
  16. +1
    -2
      mindspore/lite/java/native/runtime/ms_tensor.cpp

+ 16
- 0
mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/DataType.java View File

@@ -1,3 +1,19 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

package com.mindspore.lite;

public class DataType {


+ 16
- 0
mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/LiteSession.java View File

@@ -1,3 +1,19 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

package com.mindspore.lite;

import java.util.ArrayList;


+ 16
- 0
mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/MSTensor.java View File

@@ -1,3 +1,19 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

package com.mindspore.lite;

public class MSTensor {


+ 16
- 0
mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/Model.java View File

@@ -1,3 +1,19 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

package com.mindspore.lite;

import android.content.Context;


+ 16
- 0
mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/context/Context.java View File

@@ -1,3 +1,19 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

package com.mindspore.lite.context;

public class Context {


+ 16
- 0
mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/context/CpuBindMode.java View File

@@ -1,3 +1,19 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

package com.mindspore.lite.context;

public class CpuBindMode {


+ 16
- 0
mindspore/lite/java/java/app/src/main/java/com/mindspore/lite/context/DeviceType.java View File

@@ -1,3 +1,19 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

package com.mindspore.lite.context;

public class DeviceType {


+ 0
- 1
mindspore/lite/java/native/CMakeLists.txt View File

@@ -8,7 +8,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../../third_party/flatbuff
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../lib)

add_library(mindspore-lite-jni SHARED
${CMAKE_CURRENT_SOURCE_DIR}/common/ms_log.cpp
${CMAKE_CURRENT_SOURCE_DIR}/common/jni_utils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/runtime/model.cpp
${CMAKE_CURRENT_SOURCE_DIR}/runtime/context.cpp


+ 1
- 2
mindspore/lite/java/native/common/jni_utils.cpp View File

@@ -1,6 +1,4 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,7 @@
* limitations under the License.
*/


#include "common/jni_utils.h"
#include <cstring>



+ 1
- 2
mindspore/lite/java/native/common/jni_utils.h View File

@@ -1,6 +1,4 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,7 @@
* limitations under the License.
*/


#ifndef MINDSPORE_LITE_JAVA_SRC_COMMON_JNI_UTILS_H
#define MINDSPORE_LITE_JAVA_SRC_COMMON_JNI_UTILS_H



+ 0
- 19
mindspore/lite/java/native/common/ms_log.cpp View File

@@ -1,19 +0,0 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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.
*/

#include "common/ms_log.h"

+ 1
- 2
mindspore/lite/java/native/common/ms_log.h View File

@@ -1,6 +1,4 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,7 @@
* limitations under the License.
*/


#ifndef MINDSPORE_LITE_JAVA_SRC_COMMON_MS_LOG_H
#define MINDSPORE_LITE_JAVA_SRC_COMMON_MS_LOG_H



+ 1
- 2
mindspore/lite/java/native/runtime/context.cpp View File

@@ -1,6 +1,4 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,7 @@
* limitations under the License.
*/


#include <jni.h>
#include "common/ms_log.h"
#include "include/context.h"


+ 1
- 2
mindspore/lite/java/native/runtime/lite_session.cpp View File

@@ -1,6 +1,4 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,7 @@
* limitations under the License.
*/


#include <jni.h>
#include "common/ms_log.h"
#include "common/jni_utils.h"


+ 1
- 2
mindspore/lite/java/native/runtime/model.cpp View File

@@ -1,6 +1,4 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,7 @@
* limitations under the License.
*/


#include <jni.h>
#include "common/ms_log.h"
#include "include/model.h"


+ 1
- 2
mindspore/lite/java/native/runtime/ms_tensor.cpp View File

@@ -1,6 +1,4 @@
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,7 @@
* limitations under the License.
*/


#include <jni.h>
#include "common/ms_log.h"
#include "include/ms_tensor.h"


Loading…
Cancel
Save