diff --git a/include/api/types.h b/include/api/types.h index f983f6270d1..742fb1eb9f6 100644 --- a/include/api/types.h +++ b/include/api/types.h @@ -250,6 +250,12 @@ class MS_API MSTensor { /// \brief Set the data for the MSTensor. Only valid for Lite. /// + /// \note Deprecated, this interface will be removed in the next iteration + /// + /// \note A pointer to the data should be created by malloc interface + /// + /// \note The memory pointed to origin data pointer of MSTensor needs to be managed by the user + /// /// \param[in] A pointer to the data of the MSTensor. void SetData(void *data); diff --git a/mindspore/lite/providers/dpico/src/custom_allocator.cc b/mindspore/lite/providers/dpico/src/custom_allocator.cc index af3f7e59d0c..25550e2170a 100644 --- a/mindspore/lite/providers/dpico/src/custom_allocator.cc +++ b/mindspore/lite/providers/dpico/src/custom_allocator.cc @@ -1,5 +1,5 @@ /** - * Copyright 2020 Huawei Technologies Co., Ltd + * Copyright 2022 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. diff --git a/mindspore/lite/providers/dpico/src/custom_allocator.h b/mindspore/lite/providers/dpico/src/custom_allocator.h index 14fb958e4d6..6a09ebfb748 100644 --- a/mindspore/lite/providers/dpico/src/custom_allocator.h +++ b/mindspore/lite/providers/dpico/src/custom_allocator.h @@ -1,5 +1,5 @@ /** - * Copyright 2021 Huawei Technologies Co., Ltd + * Copyright 2022 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. diff --git a/mindspore/lite/providers/dpico/src/custom_fp32.cc b/mindspore/lite/providers/dpico/src/custom_fp32.cc index 159efc3623b..401fac88b24 100644 --- a/mindspore/lite/providers/dpico/src/custom_fp32.cc +++ b/mindspore/lite/providers/dpico/src/custom_fp32.cc @@ -173,7 +173,7 @@ Result CustomCPUKernel::InitInputsLinkMap() { } MS_LOG(INFO) << "om bottom name is below:"; auto om_inputs_num = svp_acl_mdl_get_num_inputs(model_desc_); - for (size_t j = 0; j < om_inputs_num; i++) { + for (size_t j = 0; j < om_inputs_num; j++) { std::string om_bottom_name = svp_acl_mdl_get_input_name_by_index(model_desc_, j); MS_LOG(INFO) << " om bottom index: " << static_cast(j) << ", om bottom name: " << om_bottom_name.c_str(); diff --git a/mindspore/lite/tools/converter/adapter/OWNERS b/mindspore/lite/tools/converter/adapter/OWNERS new file mode 100644 index 00000000000..3785f55a77b --- /dev/null +++ b/mindspore/lite/tools/converter/adapter/OWNERS @@ -0,0 +1,4 @@ +approvers: +- jpc_chenjianping +reviewers: +- jianghui58