Skip to content

Commit

Permalink
[CODEGEN][COREML] Call InferType explicitly in coreml test (apache#6676)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazum authored and Tushar Dey committed Oct 14, 2020
1 parent 6395eb3 commit 9e7c5af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/python/contrib/test_coreml_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ def _create_graph_annotated():
func2 = func2.with_attr("global_symbol", target + "_2")
gv2 = relay.GlobalVar(target + "_2")
mod[gv2] = func2
mod = relay.transform.InferType()(mod)

# body
x = relay.var("x", shape=shape)
y = relay.var("y", shape=shape)
func = relay.Function([x, y], gv0(y) - gv2(x))
mod["main"] = func
mod = relay.transform.InferType()(mod)

return mod

Expand Down

0 comments on commit 9e7c5af

Please sign in to comment.