From 420c9105b6a107dc27c6d093f8f8e55c844694c7 Mon Sep 17 00:00:00 2001 From: Gustavo Romero Date: Sun, 22 Aug 2021 02:13:08 -0300 Subject: [PATCH] Fix typos (#8787) Fix a couple of typos in comments about the IR/AST node reflection code and a typo in a comment about the main member of the TVMModule struct. Signed-off-by: Gustavo Romero --- include/tvm/node/reflection.h | 10 +++++----- include/tvm/runtime/crt/module.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/tvm/node/reflection.h b/include/tvm/node/reflection.h index d842c33cce03a..18e8db0ace228 100644 --- a/include/tvm/node/reflection.h +++ b/include/tvm/node/reflection.h @@ -43,7 +43,7 @@ using runtime::ObjectPtr; using runtime::ObjectRef; /*! - * \brief Visitor class for to get the attributesof a AST/IR node. + * \brief Visitor class to get the attributes of an AST/IR node. * The content is going to be called for each field. * * Each objects that wants reflection will need to implement @@ -75,7 +75,7 @@ class AttrVisitor { /*! * \brief Virtual function table to support IR/AST node reflection. * - * Functions are stored in columar manner. + * Functions are stored in columnar manner. * Each column is a vector indexed by Object's type_index. */ class ReflectionVTable { @@ -205,7 +205,7 @@ class ReflectionVTable::Registry { /*! * \brief Set fcreate function. * \param f The creator function. - * \return rference to self. + * \return Reference to self. */ Registry& set_creator(FCreate f) { // NOLINT(*) ICHECK_LT(type_index_, parent_->fcreate_.size()); @@ -215,7 +215,7 @@ class ReflectionVTable::Registry { /*! * \brief Set bytes repr function. * \param f The ReprBytes function. - * \return rference to self. + * \return Reference to self. */ Registry& set_repr_bytes(FReprBytes f) { // NOLINT(*) ICHECK_LT(type_index_, parent_->frepr_bytes_.size()); @@ -374,7 +374,7 @@ inline ReflectionVTable::Registry ReflectionVTable::Register() { fsequal_reduce_.resize(tindex + 1, nullptr); fshash_reduce_.resize(tindex + 1, nullptr); } - // functor that implemnts the redirection. + // functor that implements the redirection. fvisit_attrs_[tindex] = ::tvm::detail::SelectVisitAttrs::VisitAttrs; fsequal_reduce_[tindex] = ::tvm::detail::SelectSEqualReduce::SEqualReduce; diff --git a/include/tvm/runtime/crt/module.h b/include/tvm/runtime/crt/module.h index 7b124c4faa3a3..bcbae32fd96ed 100644 --- a/include/tvm/runtime/crt/module.h +++ b/include/tvm/runtime/crt/module.h @@ -35,7 +35,7 @@ extern "C" { * \brief Module container of TVM. */ typedef struct TVMModule { - /*! \brief The function registry associated with this mdoule. */ + /*! \brief The function registry associated with this module. */ const TVMFuncRegistry* registry; } TVMModule;