From de748fb2f37a54f41a84b5255392112ac93f7168 Mon Sep 17 00:00:00 2001 From: xulei Date: Mon, 7 Nov 2022 17:28:36 +0800 Subject: [PATCH] clean code --- .../ccsrc/plugin/device/cpu/kernel/eigen/expand_cpu_kernel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/plugin/device/cpu/kernel/eigen/expand_cpu_kernel.cc b/mindspore/ccsrc/plugin/device/cpu/kernel/eigen/expand_cpu_kernel.cc index 4c7560cfddc..db4b89166c6 100644 --- a/mindspore/ccsrc/plugin/device/cpu/kernel/eigen/expand_cpu_kernel.cc +++ b/mindspore/ccsrc/plugin/device/cpu/kernel/eigen/expand_cpu_kernel.cc @@ -134,7 +134,7 @@ bool ExpandCpuKernelMod::ExpandCalculate(const std::vector &inputs, size_t input_x_element_num = get_element_num(input_x_shape_); size_t output_y_element_num = get_element_num(output_y_shape_); - (void)input_x_shape_.insert(input_x_shape_.begin(), IntToSize(RANK - input_x_shape_.size()), 1); + (void)input_x_shape_.insert(input_x_shape_.begin(), RANK - input_x_shape_.size(), 1); input_x_bcast_.resize(RANK, kNoBroadcastValue); for (size_t i = 0; i < RANK; i++) { if (input_x_shape_[i] == input_shape_[i]) {