[Apache TVM Discuss] [Questions] I want to pad my matrix but tvm wipe the paddings when lowering

2021-08-15 Thread Wu Zheng via Apache TVM Discuss
I just write a matrix multiplication computation, and here is my code, it is easy A = te.placeholder((49, 576)) B = te.placeholder((64, 576)) D = topi.nn.pad(A, (0, 0), (15, 0)) k = te.reduce_axis((0, 576)) C = te.compute( (64, 64), lambda i, j: te.sum(

[Apache TVM Discuss] [Questions] Relay build resnet18 generate c code but there is no "main" function

2021-06-01 Thread Wu Zheng via Apache TVM Discuss
Hey I just try to lower resnet18 of mxnet to target="c", I got the c code now, but it can not run on gcc, because it does not have the funciton "main". I got plenty of computational functions in the c code, but there is not a function "main" to call them. I am wondering how to generate the bac

[Apache TVM Discuss] [Questions] Buffer bind scope mismatch

2021-05-12 Thread Wu Zheng via Apache TVM Discuss
sorry, i may forget how i solve the problem --- [Visit Topic](https://discuss.tvm.apache.org/t/buffer-bind-scope-mismatch/9570/3) 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

[Apache TVM Discuss] [Questions] Buffer bind scope mismatch

2021-03-30 Thread Wu Zheng via Apache TVM Discuss
I am wandering what does this error mean? `Check failed: arg->scope == value->scope: Argument local.in_buffer Buffer bind scope mismatch` Here I code a matrix multiplication and I want to intrisic to tensorize, as the code follows: data = tvm.te.placeholder((64, 64), dtype="int8", name="

[Apache TVM Discuss] [Questions] Data type error while using tensorize

2021-03-26 Thread Wu Zheng via Apache TVM Discuss
I see, the bug is fixed, thanks! --- [Visit Topic](https://discuss.tvm.apache.org/t/data-type-error-while-using-tensorize/9530/4) 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

[Apache TVM Discuss] [Questions] Data type error while using tensorize

2021-03-26 Thread Wu Zheng via Apache TVM Discuss
where to set elem_offset? --- [Visit Topic](https://discuss.tvm.apache.org/t/data-type-error-while-using-tensorize/9530/3) 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/unsubs

[Apache TVM Discuss] [Questions] Data type error while using tensorize

2021-03-25 Thread Wu Zheng via Apache TVM Discuss
hello! I am trying to use tensorize on my declared conv2d operator. here is my code.import numpy as np > import tvm > from tvm import te > from tvm import autotvm > from tvm import topi > from zte.enviroment import get_env > from zte.intrin import gemm > > data