A placeholder for the book, discussion threads are embedded into the following page:
1 Like
Thank you for the tutorial, very helpful. Just made a note that, with the latest tvm (0.8.dev0)
I see this output from lower()
#[version = "0.0.5"]
primfn(a_2: handle, a_3: handle, c_1: handle) -> ()
attr = {"global_symbol": "main", "tir.noalias": True}
buffers = {a_1: Buffer(a_4: Pointer(float32), float32, [100], []),
c: Buffer(c_2: Pointer(float32), float32, [100], []),
a: Buffer(a_5: Pointer(float32), float32, [100], [])}
buffer_map = {a_2: a, a_3: a_1, c_1: c} {
for (i: int32, 0, 100) {
c_2[i] = ((float32*)a_5[i] + (float32*)a_4[i])
}
}
#[metadata]
{
"root": 1,
"nodes": [
{
"type_key": ""
},
{
"type_key": "Map",
"keys": [
"IntImm"
],
"data": [2]
},
{
"type_key": "Array",
"data": [3]
},
{
"type_key": "IntImm",
"attrs": {
"dtype": "bool",
"value": "1"
}
}
],
"b64ndarrays": [],
"attrs": {"tvm_version": "0.8.dev0"}
}
ImportError: cannot import name ‘te’ from partially initialized module ‘tvm’
I’m using tvm version 1.0.0.
Thank you for advice