Browse Source

!8797 move declaration to correct headers

From: @zhaozhenlong
Reviewed-by: @zhang_xue_tong,@hangangqiang
Signed-off-by: @zhang_xue_tong
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
1145fd1ca9
8 changed files with 36 additions and 5 deletions
  1. +3
    -0
      mindspore/lite/src/ops/populate/arithmetic_populate.h
  2. +2
    -2
      mindspore/lite/src/ops/populate/populate_register.h
  3. +2
    -0
      mindspore/lite/src/ops/populate/strided_slice_populate.cc
  4. +25
    -0
      mindspore/lite/src/ops/populate/strided_slice_populate.h
  5. +1
    -0
      mindspore/lite/src/ops/strided_slice.cc
  6. +1
    -1
      mindspore/lite/src/runtime/kernel/arm/base/strided_slice.cc
  7. +1
    -1
      mindspore/lite/src/runtime/kernel/arm/fp16/arithmetic_fp16.cc
  8. +1
    -1
      mindspore/lite/src/runtime/kernel/arm/fp32/arithmetic_fp32.cc

+ 3
- 0
mindspore/lite/src/ops/populate/arithmetic_populate.h View File

@@ -20,7 +20,10 @@

namespace mindspore {
namespace lite {

ArithmeticParameter *PopulateArithmeticCommonPara(const mindspore::lite::PrimitiveC *primitive);
OpParameter *PopulateArithmetic(const mindspore::lite::PrimitiveC *primitive);

} // namespace lite
} // namespace mindspore
#endif // MINDSPORE_LITE_SRC_OPS_POPULATE_ARITHMETIC_POPULATE_H_

+ 2
- 2
mindspore/lite/src/ops/populate/populate_register.h View File

@@ -21,6 +21,7 @@

namespace mindspore {
namespace lite {

class PopulateRegistry {
public:
static PopulateRegistry *GetInstance() {
@@ -50,8 +51,7 @@ class Registry {
}
~Registry() = default;
};
OpParameter *PopulateArithmetic(const mindspore::lite::PrimitiveC *primitive);
OpParameter *PopulateStridedSliceParameter(const mindspore::lite::PrimitiveC *primitive);

} // namespace lite
} // namespace mindspore
#endif

+ 2
- 0
mindspore/lite/src/ops/populate/strided_slice_populate.cc View File

@@ -14,6 +14,7 @@
* limitations under the License.
*/

#include "src/ops/populate/strided_slice_populate.h"
#include "src/ops/strided_slice.h"
#include "src/ops/primitive_c.h"
#include "src/ops/populate/populate_register.h"
@@ -46,5 +47,6 @@ OpParameter *PopulateStridedSliceParameter(const mindspore::lite::PrimitiveC *pr
}

Registry StridedSliceParameterRegistry(schema::PrimitiveType_StridedSlice, PopulateStridedSliceParameter);

} // namespace lite
} // namespace mindspore

+ 25
- 0
mindspore/lite/src/ops/populate/strided_slice_populate.h View File

@@ -0,0 +1,25 @@
/**
* Copyright 2019-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 "src/ops/arithmetic.h"

namespace mindspore {
namespace lite {

OpParameter *PopulateStridedSliceParameter(const mindspore::lite::PrimitiveC *primitive);

} // namespace lite
} // namespace mindspore

+ 1
- 0
mindspore/lite/src/ops/strided_slice.cc View File

@@ -15,6 +15,7 @@
*/

#include "src/ops/strided_slice.h"
#include "src/ops/populate/strided_slice_populate.h"
#include <algorithm>

#ifndef PRIMITIVE_WRITEABLE


+ 1
- 1
mindspore/lite/src/runtime/kernel/arm/base/strided_slice.cc View File

@@ -20,7 +20,7 @@
#include "src/kernel_registry.h"
#include "include/errorcode.h"
#include "src/runtime/runtime_api.h"
#include "src/ops/populate/populate_register.h"
#include "src/ops/populate/strided_slice_populate.h"

using mindspore::kernel::KERNEL_ARCH::kCPU;
using mindspore::lite::KernelRegistrar;


+ 1
- 1
mindspore/lite/src/runtime/kernel/arm/fp16/arithmetic_fp16.cc View File

@@ -21,7 +21,7 @@
#include "schema/model_generated.h"
#include "src/kernel_registry.h"
#include "src/runtime/runtime_api.h"
#include "src/ops/populate/populate_register.h"
#include "src/ops/populate/arithmetic_populate.h"
#include "include/errorcode.h"

using mindspore::kernel::KERNEL_ARCH::kCPU;


+ 1
- 1
mindspore/lite/src/runtime/kernel/arm/fp32/arithmetic_fp32.cc View File

@@ -20,7 +20,7 @@
#include "src/kernel_registry.h"
#include "src/runtime/kernel/arm/int8/add_int8.h"
#include "src/runtime/runtime_api.h"
#include "src/ops/populate/populate_register.h"
#include "src/ops/populate/arithmetic_populate.h"

using mindspore::kernel::KERNEL_ARCH::kCPU;
using mindspore::lite::KernelRegistrar;


Loading…
Cancel
Save