fix typo of 'a int'

This commit is contained in:
yuchaojie 2021-12-16 11:28:00 +08:00
parent d1d516e668
commit ef9a30e6c7
9 changed files with 9 additions and 9 deletions

View File

@ -79,7 +79,7 @@ bool CheckValues(const ValuePtrList &strides_values) {
return false; return false;
} }
} else { } else {
MS_LOG(DEBUG) << "strides value is not a Integer"; MS_LOG(DEBUG) << "Strides value is not an integer";
return false; return false;
} }
} else { } else {

View File

@ -179,7 +179,7 @@ class CacheClient {
Status GetStat(CacheServiceStat *); Status GetStat(CacheServiceStat *);
/// \brief Get the state of a cache server /// \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 /// \return Status object
Status GetState(int8_t *); Status GetState(int8_t *);

View File

@ -121,7 +121,7 @@ class SamplerRT {
// @return Status The status code returned // @return Status The status code returned
Status AddChild(std::shared_ptr<SamplerRT> child); Status AddChild(std::shared_ptr<SamplerRT> 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<Tensor>* sampleIds // @param std::shared_ptr<Tensor>* sampleIds
// @param int64_t numElements - must be a non 0 number // @param int64_t numElements - must be a non 0 number
// @return Status The status code returned // @return Status The status code returned

View File

@ -333,7 +333,7 @@ py::object GetItemObjectFromSequence(const NameSpacePtr &name_space, const Symbo
const std::string module = "mindspore._extends.parse.parser"; const std::string module = "mindspore._extends.parse.parser";
auto imm_value = GetValueNode<Int64ImmPtr>(index_node); auto imm_value = GetValueNode<Int64ImmPtr>(index_node);
if (imm_value == nullptr) { 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(); << ", index_node: " << index_node->DebugString();
} }
int index = imm_value->value(); int index = imm_value->value();

View File

@ -159,7 +159,7 @@ void FinalVM::DoJmp(const BaseRef &jmp_orig) {
} }
if (!utils::isa<int64_t>(jmp)) { if (!utils::isa<int64_t>(jmp)) {
MS_LOG(EXCEPTION) << "Jmp inst should be a int64_t"; MS_LOG(EXCEPTION) << "Jmp inst should be an int64_t";
} }
pc_ = utils::cast<int64_t>(jmp); pc_ = utils::cast<int64_t>(jmp);
MS_LOG(DEBUG) << "End do jump pc_:" << pc_; MS_LOG(DEBUG) << "End do jump pc_:" << pc_;

View File

@ -80,7 +80,7 @@ AbstractBasePtr InferImplSwitchLayer(const AnalysisEnginePtr &, const PrimitiveP
} }
auto dtype = index->element()->BuildType(); auto dtype = index->element()->BuildType();
if (dtype->type_id() != kInt32->type_id()) { 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<AbstractTuple>(op_name, args_spec_list, 1); AbstractTuplePtr branches_abs = CheckArg<AbstractTuple>(op_name, args_spec_list, 1);

View File

@ -197,7 +197,7 @@ inline ValuePtr MakeValue(T v) {
/// \return The created StringImm Value object. /// \return The created StringImm Value object.
inline ValuePtr MakeValue(const char *s) { return MakeShared<StringImm>(std::string(s)); } inline ValuePtr MakeValue(const char *s) { return MakeShared<StringImm>(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. /// \param[in] i The int value.
/// ///

View File

@ -56,7 +56,7 @@ class MS_CORE_API NonMaxSuppression : public PrimitiveC {
/// \brief Method to get center_point_box attribute. /// \brief Method to get center_point_box attribute.
/// ///
/// \return a integer value. /// \return an integer value.
int64_t get_center_point_box() const; int64_t get_center_point_box() const;
}; };
AbstractBasePtr NonMaxSuppressionInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, AbstractBasePtr NonMaxSuppressionInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,

View File

@ -246,7 +246,7 @@ int RelativePositionAttentionCPUKernel::PrepareParam() {
return RET_ERROR; return RET_ERROR;
} }
if (param_->d_model_ % param_->num_heads_ != 0) { 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_ERROR;
} }
return RET_OK; return RET_OK;