Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gromero committed Aug 19, 2021
1 parent 5b2e504 commit d98f7b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions include/tvm/node/reflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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());
Expand All @@ -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());
Expand Down Expand Up @@ -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<T, TraitName>::VisitAttrs;

fsequal_reduce_[tindex] = ::tvm::detail::SelectSEqualReduce<T, TraitName>::SEqualReduce;
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/runtime/crt/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d98f7b8

Please sign in to comment.