Merge pull request !39431 from yuchaojie/code-clean
This commit is contained in:
i-robot 2022-08-03 09:19:57 +00:00 committed by Gitee
commit 576f62599c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 3 deletions

View File

@ -21,7 +21,6 @@
#include <map>
#include <limits>
#include <string>
#include "mindspore/core/ir/dtype/type_id.h"
#include "plugin/device/cpu/kernel/cpu_kernel.h"
#include "plugin/factory/ms_factory.h"

View File

@ -44,8 +44,7 @@ void EyeCpuKernelMod::InitKernel(const CNodePtr &kernel_node) {
}
template <typename T>
bool EyeCpuKernelMod::LaunchKernel(const std::vector<kernel::AddressPtr> &inputs,
const std::vector<kernel::AddressPtr> &,
bool EyeCpuKernelMod::LaunchKernel(const std::vector<kernel::AddressPtr> &, const std::vector<kernel::AddressPtr> &,
const std::vector<kernel::AddressPtr> &outputs) {
int64_t num_min = (num_n_ > num_m_) ? num_m_ : num_n_;
size_t data_num = outputs[0]->size;