Skip to content

Commit

Permalink
Pass GlobalVarSupply when lowering shape funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin-Gabriel Blanaru committed Jul 18, 2022
1 parent 3c327fe commit 4ccc004
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/relay/backend/te_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,7 @@ class TECompilerImpl : public TECompilerNode {

using tvm::transform::PassContext;
With<PassContext> fresh_pass_ctx_scope(PassContext::Create());
value->cached_func =
ShapeFuncFor(key->source_func, key->target, GlobalVarSupply::EmptySupply());
value->cached_func = ShapeFuncFor(key->source_func, key->target, global_var_supply);

ICHECK(
value->cached_func->funcs->Lookup(value->cached_func->prim_fn_var).as<tir::PrimFuncNode>());
Expand Down

0 comments on commit 4ccc004

Please sign in to comment.