Skip to content

Commit

Permalink
[Relay] visit the span (#1990)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame authored and tqchen committed Oct 25, 2018
1 parent 55d26ae commit db3dcba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/tvm/relay/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class IncompleteTypeNode : public TypeNode {

void VisitAttrs(tvm::AttrVisitor* v) final {
v->Visit("kind", &kind);
v->Visit("span", &span);
}

TVM_DLL static IncompleteType make(TypeVarNode::Kind kind);
Expand Down Expand Up @@ -243,7 +244,10 @@ class TupleTypeNode : public TypeNode {

TupleTypeNode() {}

void VisitAttrs(tvm::AttrVisitor* v) final { v->Visit("fields", &fields); }
void VisitAttrs(tvm::AttrVisitor* v) final {
v->Visit("fields", &fields);
v->Visit("span", &span);
}

TVM_DLL static TupleType make(tvm::Array<Type> fields);

Expand Down Expand Up @@ -361,6 +365,7 @@ class TypeRelationNode : public TypeConstraintNode {
v->Visit("args", &args);
v->Visit("num_inputs", &num_inputs);
v->Visit("attrs", &attrs);
v->Visit("span", &span);
}

TVM_DLL static TypeRelation make(TypeRelationFn func,
Expand Down

0 comments on commit db3dcba

Please sign in to comment.