Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #8787

Merged
merged 1 commit into from
Aug 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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