Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wweic committed Jun 7, 2019
1 parent 59ae278 commit b2eddd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/tvm/relay/interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ RELAY_DEFINE_NODE_REF(RefValue, RefValueNode, Value);
class ConstructorValue;

struct ConstructorValueNode : ValueNode {
uint64_t tag;
int tag;

tvm::Array<Value> fields;

Expand All @@ -191,7 +191,7 @@ struct ConstructorValueNode : ValueNode {
v->Visit("fields", &fields);
}

TVM_DLL static ConstructorValue make(uint64_t tag,
TVM_DLL static ConstructorValue make(int tag,
tvm::Array<Value> fields);

static constexpr const char* _type_key = "relay.ConstructorValue";
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/relay/backend/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _eval_vm(mod, ctx, *args):

assert isinstance(main_func, Function)
# optimize all functions in the module
for gvar,func in mod.functions.items():
for gvar, _ in mod.functions.items():
func_opt = optimize(mod[gvar], mod)
mod[gvar] = func_opt
main_func = optimize(mod[mod.entry_func], mod)
Expand Down
2 changes: 1 addition & 1 deletion src/relay/backend/interpreter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ TVM_STATIC_IR_FUNCTOR_REGISTER(IRPrinter, vtable)
p->stream << "RefValueNode(" << node->value << ")";
});

ConstructorValue ConstructorValueNode::make(uint64_t tag,
ConstructorValue ConstructorValueNode::make(int tag,
tvm::Array<Value> fields) {
NodePtr<ConstructorValueNode> n = make_node<ConstructorValueNode>();
n->tag = tag;
Expand Down

0 comments on commit b2eddd6

Please sign in to comment.