Kevin-XiongC opened a new issue, #13796:
URL: https://github.com/apache/tvm/issues/13796
``` python
import tvm
from tvm import relay
from tvm.contrib import graph_executor
import numpy as np
x=relay.var("x",shape=[2,2],dtype="int32")
t1=relay.cast(x,"bool")
y=relay.sum(t1)
f = relay.Function([x],relay.Tuple([t1,y]))
mod = tvm.IRModule({"main":f})
target = "llvm"
with tvm.transform.PassContext(opt_level=3 ):
lib = relay.build(mod, target=target)
m = graph_executor.GraphModule(lib['default'](tvm.cpu()))
x = np.ones((2,2)).astype("int32")
print(x)
m.set_input("x",x)
print(m.get_output(0))
print(m.get_output(1))
```
The code snippets above should be equivalent to below:
### Expected behavior
What you were expecting
### Actual behavior
What actually happened
### Environment
Any environment details, such as: Operating System, TVM version, etc
### Steps to reproduce
Preferably a minimal script to cause the issue to occur.
### Triage
Please refer to the list of label tags
[here](https://github.com/apache/tvm/wiki/Issue-Triage-Labels) to find the
relevant tags and add them below in a bullet format (example below).
* needs-triage
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]