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)
tuple = relay.Tuple([y1])
F1 = relay.Function([x1], tuple)
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 
![3|690x340](upload://4RWUfamwVQRDB5o7W1dnASvR2LV.png) 
I am not sure if it's my fault to cause this problem. Could any expert give me 
a hint? Thanks in advance.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/infertype-crashes-when-a-relay-function-call-another-function/12176/1)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/75f86fd08f405b376efaed388093fb9f62f62267a0197cccb0db2401e1e4cdb7).

Reply via email to