[Apache TVM Discuss] [Questions] Mkldnn verbose doesn't work

2021-03-08 Thread Gnupdev via Apache TVM Discuss
Oh If i do not use autoTVM for tuning my graph, does mkldnn not be applied??? autoTVM : tuning my graph operation like 'for' loop (using tvm schedule primitives), it is what i know.. then mkldnn or -libs options are used like tvm schedule primitives?? --- [Visit Topic](https://discus

[Apache TVM Discuss] [Questions] If_scope in ir_builder

2021-03-08 Thread Michael via Apache TVM Discuss
Thank you @leeexyz. Yeah, we can use ```tvm.tir.const``` or a new buffer. I means, it there any mechanism to prevent users using python variables within a ```if_scope```. For example, error message to tell users to utilize ```tvm.tir.const``` since it's quite easy to confuse the python varia

[Apache TVM Discuss] [Questions] Mkldnn verbose doesn't work

2021-03-08 Thread Haichen Shen via Apache TVM Discuss
I'm not sure why MKLDNN_VERBOSE=1 doesn't work. The warning shows during the compilation is fine. It just means that AutoTVM doesn't find a log record corrsponding to "dense_mkldnn.x86". --- [Visit Topic](https://discuss.tvm.apache.org/t/mkldnn-verbose-doesnt-work/9315/4) to respond. Yo

[Apache TVM Discuss] [Questions] If_scope in ir_builder

2021-03-08 Thread leeexyz via Apache TVM Discuss
Hi @SYangDong, use `b = tvm.tir.const(100, dtype="float32")` instead of the assgiment directly. --- [Visit Topic](https://discuss.tvm.apache.org/t/if-scope-in-ir-builder/9332/2) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [c

[Apache TVM Discuss] [Questions] [TE] Tensorize Elementwise Sum

2021-03-08 Thread Josse Van Delm via Apache TVM Discuss
@leeexyz I can see it now too! This is really helpful! Thank you so much! --- [Visit Topic](https://discuss.tvm.apache.org/t/te-tensorize-elementwise-sum/9335/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](http

[Apache TVM Discuss] [Questions] [TE] Tensorize Elementwise Sum

2021-03-08 Thread leeexyz via Apache TVM Discuss
[quote="JosseVanDelm, post:1, topic:9335"] ``` Ab = tvm.tir.decl_buffer(a.shape, a.dtype, name="A", offset_factor=1, strides=[2,1]) Bb = tvm.tir.decl_buffer(b.shape, b.dtype, name="B", offset_factor=1, strides=[2,1]) Cb = tvm.tir.decl_buffer(c.shape, c.dtype, name="C", offset_factor

[Apache TVM Discuss] [Questions] Tiled tensors for external (python) functions and TIR == te.extern?

2021-03-08 Thread Teng HUANG via Apache TVM Discuss
[quote="cron, post:1, topic:9083"] side of `te.extern` is blocking any kind of optimization which leads from introducing this stage into an [/quote] Hi, I am also trying to apply some schedule primitive methods on tensor.ExternOp, but it seems not supported according to this post (3 years' ag

[Apache TVM Discuss] [Questions] [TE] Tensorize Elementwise Sum

2021-03-08 Thread Josse Van Delm via Apache TVM Discuss
Hi everyone, I'm currently trying to tensorize the schedule for a very simple [4,4] matrix element-wise sum (add) to be performed in 4 [2,2] matrix addition steps by an intrinsic function. I've looked into adapting the tutorial on [Tensorization](https://tvm.apache.org/docs/tutorials/languag

[Apache TVM Discuss] [Questions] What's the difference between build() and create_executor() in tvm.relay.build_module?

2021-03-08 Thread Wang Y Z via Apache TVM Discuss
hi,I am new to TVM and I want to ask a q: when using realy.build a lib and we can use time_evaluator to calculate the time cost; how to calculate the time when using create_executor? I think > start = time.time() > tvm_output = intrp.evaluate()(tvm.nd.array(x.astype(dtype)), **param

[Apache TVM Discuss] [Questions] If_scope in ir_builder

2021-03-08 Thread Michael via Apache TVM Discuss
Hi, I'm using the ir_builder to contrust a cuda kernel, but I encounter a problem of if_scope ``` ib = tvm.tir.ir_builder.create() n = te.size_var("n") A = ib.pointer("float32", name="A") tmod = tvm.tir.truncmod with ib.for_range(0, n, name="i") as i: with ib.if_scope(tm