Skip to content

Commit

Permalink
Use proper wrapper for indexing into module type data
Browse files Browse the repository at this point in the history
  • Loading branch information
slyubomirsky committed Feb 1, 2019
1 parent 06bc958 commit e4ecb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/pass/type_infer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class TypeInferencer : private ExprFunctor<Type(const Expr&)>,
CHECK(mod_.defined())
<< "Cannot do type inference without a environment:"
<< c->name_hint;
TypeData td = mod_->type_definitions.at(c->belong_to);
TypeData td = mod_->LookupDef(c->belong_to);
std::vector<Type> types;
for (const auto & t : td->tv) {
types.push_back(t);
Expand Down

0 comments on commit e4ecb66

Please sign in to comment.