When I play with relay, I meet the following unexpected crash caused by InferType
. Below is my script,
import tvm
from tvm import relay
mod = tvm.IRModule()
x1 = relay.var("x1", dtype='float64', shape=())
y1 = relay.log(x1)
F1 = relay.Function([x1], y1)
mod['F1'] = F1
x2 = relay.var("x2", dtype='float64', shape=())
f = mod.get_global_var('F1')
y2 = f(x2)
F2 = relay.Function([x2], y2)
mod['main'] = F2
print(mod)
mod = relay.transform.InferType()(mod)
print(mod)
And the crash message generated by TVM_BACKTRACE=1
is