diff --git a/mindspore/ccsrc/backend/optimizer/pass/const_to_attr_strided_slice_grad.cc b/mindspore/ccsrc/backend/optimizer/pass/const_to_attr_strided_slice_grad.cc index 547a16f1bf7..2652bc77265 100644 --- a/mindspore/ccsrc/backend/optimizer/pass/const_to_attr_strided_slice_grad.cc +++ b/mindspore/ccsrc/backend/optimizer/pass/const_to_attr_strided_slice_grad.cc @@ -79,7 +79,7 @@ bool CheckValues(const ValuePtrList &strides_values) { return false; } } else { - MS_LOG(DEBUG) << "strides value is not a Integer"; + MS_LOG(DEBUG) << "Strides value is not an integer"; return false; } } else { diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h index e7ccd620817..4dd996ea86a 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h +++ b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h @@ -179,7 +179,7 @@ class CacheClient { Status GetStat(CacheServiceStat *); /// \brief Get the state of a cache server - /// \param[in/out] Pointer to a int8_t + /// \param[in/out] Pointer to an int8_t /// \return Status object Status GetState(int8_t *); diff --git a/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/sampler.h b/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/sampler.h index be485a422bb..d968ee15540 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/sampler.h +++ b/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/sampler.h @@ -121,7 +121,7 @@ class SamplerRT { // @return Status The status code returned Status AddChild(std::shared_ptr child); - // A helper function to create a int64_t 1-D Tensor specifically used to hold sampleIds for Sampler + // A helper function to create an int64_t 1-D Tensor specifically used to hold sampleIds for Sampler // @param std::shared_ptr* sampleIds // @param int64_t numElements - must be a non 0 number // @return Status The status code returned diff --git a/mindspore/ccsrc/pipeline/jit/parse/resolve.cc b/mindspore/ccsrc/pipeline/jit/parse/resolve.cc index b51f3bdb688..70a66ecc5af 100644 --- a/mindspore/ccsrc/pipeline/jit/parse/resolve.cc +++ b/mindspore/ccsrc/pipeline/jit/parse/resolve.cc @@ -333,7 +333,7 @@ py::object GetItemObjectFromSequence(const NameSpacePtr &name_space, const Symbo const std::string module = "mindspore._extends.parse.parser"; auto imm_value = GetValueNode(index_node); if (imm_value == nullptr) { - MS_LOG(EXCEPTION) << "Expect a int64 value node, node: " << node->DebugString() + MS_LOG(EXCEPTION) << "Expect an int64 value node, node: " << node->DebugString() << ", index_node: " << index_node->DebugString(); } int index = imm_value->value(); diff --git a/mindspore/ccsrc/vm/vm.cc b/mindspore/ccsrc/vm/vm.cc index 226927e3ac5..36e87a550e0 100644 --- a/mindspore/ccsrc/vm/vm.cc +++ b/mindspore/ccsrc/vm/vm.cc @@ -159,7 +159,7 @@ void FinalVM::DoJmp(const BaseRef &jmp_orig) { } if (!utils::isa(jmp)) { - MS_LOG(EXCEPTION) << "Jmp inst should be a int64_t"; + MS_LOG(EXCEPTION) << "Jmp inst should be an int64_t"; } pc_ = utils::cast(jmp); MS_LOG(DEBUG) << "End do jump pc_:" << pc_; diff --git a/mindspore/core/abstract/prim_statement.cc b/mindspore/core/abstract/prim_statement.cc index 17debe3a67e..7ff9ae03ca9 100644 --- a/mindspore/core/abstract/prim_statement.cc +++ b/mindspore/core/abstract/prim_statement.cc @@ -80,7 +80,7 @@ AbstractBasePtr InferImplSwitchLayer(const AnalysisEnginePtr &, const PrimitiveP } auto dtype = index->element()->BuildType(); if (dtype->type_id() != kInt32->type_id()) { - MS_EXCEPTION(ValueError) << op_name << " index must be a int32, but got " << dtype->ToString(); + MS_EXCEPTION(ValueError) << op_name << " index must be an int32, but got " << dtype->ToString(); } AbstractTuplePtr branches_abs = CheckArg(op_name, args_spec_list, 1); diff --git a/mindspore/core/mindapi/ir/value.h b/mindspore/core/mindapi/ir/value.h index cdbcf6dddf1..37a8670fd6d 100644 --- a/mindspore/core/mindapi/ir/value.h +++ b/mindspore/core/mindapi/ir/value.h @@ -197,7 +197,7 @@ inline ValuePtr MakeValue(T v) { /// \return The created StringImm Value object. inline ValuePtr MakeValue(const char *s) { return MakeShared(std::string(s)); } -/// \brief brief Create a Int64Imm Value object from a int value. +/// \brief brief Create an Int64Imm Value object from a int value. /// /// \param[in] i The int value. /// diff --git a/mindspore/core/ops/non_max_suppression.h b/mindspore/core/ops/non_max_suppression.h index 49224b02a01..0c3c8682edf 100644 --- a/mindspore/core/ops/non_max_suppression.h +++ b/mindspore/core/ops/non_max_suppression.h @@ -56,7 +56,7 @@ class MS_CORE_API NonMaxSuppression : public PrimitiveC { /// \brief Method to get center_point_box attribute. /// - /// \return a integer value. + /// \return an integer value. int64_t get_center_point_box() const; }; AbstractBasePtr NonMaxSuppressionInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/relative_position_attention_fp32.cc b/mindspore/lite/src/runtime/kernel/arm/fp32/relative_position_attention_fp32.cc index 32f08075203..51d3146abe1 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/relative_position_attention_fp32.cc +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/relative_position_attention_fp32.cc @@ -246,7 +246,7 @@ int RelativePositionAttentionCPUKernel::PrepareParam() { return RET_ERROR; } if (param_->d_model_ % param_->num_heads_ != 0) { - MS_LOG(ERROR) << "D_model should be a integer multiple of num_heads."; + MS_LOG(ERROR) << "D_model should be an integer multiple of num_heads."; return RET_ERROR; } return RET_OK;