Merge pull request !45231 from xulei/clean_code
This commit is contained in:
i-robot 2022-11-08 01:40:41 +00:00 committed by Gitee
commit 44ad905e2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ bool ExpandCpuKernelMod::ExpandCalculate(const std::vector<AddressPtr> &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]) {