This is an automated email from the ASF dual-hosted git repository.

leandron pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new edb7e77  Fix a word typo and add spaces. (#8278)
edb7e77 is described below

commit edb7e7723b1054d6d419f7103135ba4bb0691372
Author: kueitang <[email protected]>
AuthorDate: Fri Jun 18 22:09:30 2021 +0800

    Fix a word typo and add spaces. (#8278)
    
    Co-authored-by: kueitang <[email protected]>
---
 include/tvm/ir/op.h               | 2 +-
 src/relay/analysis/well_formed.cc | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/tvm/ir/op.h b/include/tvm/ir/op.h
index a18d429..6831700 100644
--- a/include/tvm/ir/op.h
+++ b/include/tvm/ir/op.h
@@ -146,7 +146,7 @@ class OpNode : public RelayExprNode {
   // Internal function to compute if it is primitive op
   bool IsPrimitiveOp_() const {
     const auto& fn_ty = this->op_type;
-    ICHECK(fn_ty.get() != nullptr) << "op_type of " << this->name << "is not 
registered";
+    ICHECK(fn_ty.get() != nullptr) << "op_type of " << this->name << " is not 
registered";
     if (fn_ty->type_constraints.size() != 1) return false;
     const TypeRelationNode* rel = 
fn_ty->type_constraints[0].as<TypeRelationNode>();
     if (rel == nullptr) return false;
diff --git a/src/relay/analysis/well_formed.cc 
b/src/relay/analysis/well_formed.cc
index acc1a9a..d8a5bb8 100644
--- a/src/relay/analysis/well_formed.cc
+++ b/src/relay/analysis/well_formed.cc
@@ -70,8 +70,8 @@ class WellFormedChecker : private MixedModeVisitor, 
PatternVisitor {
 
   void Bound(const Var& v) {
     if (current_bound.count(v) != 0 || total_bound.count(v) != 0 || 
free.count(v) != 0) {
-      Illformed(Diagnostic::Error(v->span) << "the variable " << v->name_hint()
-                                           << "is bound more then once, this 
is not valid IR");
+      Illformed(Diagnostic::Error(v->span) << "The variable " << v->name_hint()
+                                           << " is bound more than once, this 
is not valid IR");
     }
     ICHECK_GE(scope.size(), 0);
     scope.back().insert(v);

Reply via email to