I pull the lastest code and compiled.
Then, write the following code:
from tvm.ir.module import IRModule
import tvm
from tvm import te
A = te.placeholder((8,), dtype=“float32”, name=“A”)
B = te.compute((8,), lambda *i: A(*i) + 1.0, name=“B”)
func = te.create_prim_func([A, B])
ir_module_from_te = IRModule({“main”: func})
print(ir_module_from_te.script())
But, when run this code with an error: