Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame committed Jun 28, 2019
1 parent cc02471 commit 837be95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/ir/type_functor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class TypeBinder : public TypeMutator {
};

Type Bind(const Type& type, const tvm::Map<TypeVar, Type>& args_map) {
return TypeBinder(args_map).VisitType(type);
return type.defined() ? TypeBinder(args_map).VisitType(type) : type;
}

} // namespace relay
Expand Down
1 change: 1 addition & 0 deletions tests/python/relay/test_pass_to_cps.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def test_ad_cps_pe():
print(F)
relay.ir_pass.infer_type(F)
F = relay.ir_pass.partial_evaluate(F)
F = relay.ir_pass.dead_code_elimination(F)
print(F)

if __name__ == '__main__':
Expand Down

0 comments on commit 837be95

Please sign in to comment.