Skip to content
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
2 changes: 1 addition & 1 deletion include/tvm/ir/op.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/relay/analysis/well_formed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down