From bd336e88f029a060a1a52ed5a4cd7b9edbc04b76 Mon Sep 17 00:00:00 2001 From: VectorSL Date: Fri, 5 Aug 2022 09:59:44 +0800 Subject: [PATCH] fix codex --- mindspore/core/ops/sparse_matrix_add.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/core/ops/sparse_matrix_add.cc b/mindspore/core/ops/sparse_matrix_add.cc index a818cc4da40..18bcf39f7df 100644 --- a/mindspore/core/ops/sparse_matrix_add.cc +++ b/mindspore/core/ops/sparse_matrix_add.cc @@ -44,8 +44,8 @@ constexpr size_t kBIndicesIdx = 8; constexpr size_t kBValuesIdx = 9; constexpr size_t kAlphaIndex = 10; constexpr size_t kBetaIndex = 11; -constexpr size_t kDefaultRank = 2; -constexpr size_t kBatchedRank = 3; +constexpr int64_t kDefaultRank = 2; +constexpr int64_t kBatchedRank = 3; inline void CheckSparseShape(const size_t sparse_shape_size, const size_t expected_dim, const std::string &arg_name) { if (sparse_shape_size != expected_dim) {