[TVM Discuss] [Questions] Explain the tiling reduction axes part in template

2020-04-12 Thread Puddingfjz via TVM Discuss
Can anyone help explain the tiling reduction axes part in the [Tuning High Performance Convolution on NVIDIA GPUs](https://docs.tvm.ai/tutorials/autotvm/tune_conv2d_cuda.html#tuning-high-performance-convolution-on-nvidia-gpus)? The code of this part is: ``` # tile reduction axes n, f, y, x

[TVM Discuss] [Questions] [ TOPI ] Winograd convolution performance is too slow

2020-04-07 Thread Puddingfjz via TVM Discuss
Thank you for your reply. [quote="haichen, post:10, topic:6161"] The strategy to select implementations for `conv2d` op is defined at [here ](https://github.com/apache/incubator-tvm/blob/master/python/tvm/relay/op/strategy/cuda.py#L91-L198) [/quote] Which function in AutoTVM will use this strat

[TVM Discuss] [Questions] How to use AutoTVM with manually created TOPI computations?

2020-04-06 Thread Puddingfjz via TVM Discuss
Also, could you please help me on [this question](https://discuss.tvm.ai/t/how-to-build-a-module-with-one-op-using-tvm/6237)? I am also trying to build a module with only one operator using tvm and use AutoTVM to tune it. Your help will be greatly appreciated. --- [Visit Topic](https://d

[TVM Discuss] [Questions] How to use AutoTVM with manually created TOPI computations?

2020-04-06 Thread Puddingfjz via TVM Discuss
I change my code as follows: ``` import logging import sys import numpy as np import tvm from tvm import te import topi from topi.testing import conv2d_nchw_python from tvm import autotvm logging.getLogger('autotvm').setLevel(logging.DEBUG) logging.getLogger('autotvm').addHandler(logging.Strea

[TVM Discuss] [Questions] How to use AutoTVM with manually created TOPI computations?

2020-04-06 Thread Puddingfjz via TVM Discuss
You mean for this line [quote="puddingfjz, post:6, topic:4895"] task = autotvm.task.create("conv2d_nchw.cuda", args=([conv],), target='cuda') [/quote] in my code, the task_name ```"conv2d_nchw.cuda"``` here is actually the name for the ```compute``` rather than ```schedule```? [quote="puddin

[TVM Discuss] [Questions] How to use AutoTVM with manually created TOPI computations?

2020-04-06 Thread Puddingfjz via TVM Discuss
But according to the schedule definition: https://github.com/apache/incubator-tvm/blob/9816efc2df63cf6a14a6de46dc2adfafde58acc1/topi/python/topi/cuda/conv2d.py#L36 we only need one parameter ```outs``` here. --- [Visit Topic](https://discuss.tvm.ai/t/how-to-use-autotvm-with-manually-created

[TVM Discuss] [Questions] How to use AutoTVM with manually created TOPI computations?

2020-04-06 Thread Puddingfjz via TVM Discuss
Thank you for your reply. I remove the ```cfg```, and I get the following error. ``` Traceback (most recent call last): File "tune_conv2d_cuda_builtin_tmp_2.py", line 23, in target='cuda') File "/usr/tvm/python/tvm/autotvm/task/task.py", line 418, in create sch, _ = ret.func(*args)

[TVM Discuss] [Questions] How do you create a task for auto-tuning (CUDA) from relay.nn.conv2d?

2020-04-06 Thread Puddingfjz via TVM Discuss
Hi, I am trying to build a module of one op as you do, but I am not familiar with tvm. Could you share your code of the above example with me? Thanks a lot. --- [Visit Topic](https://discuss.tvm.ai/t/how-do-you-create-a-task-for-auto-tuning-cuda-from-relay-nn-conv2d/5921/9) to respond. Y

[TVM Discuss] [Questions] How to use AutoTVM with manually created TOPI computations?

2020-04-06 Thread Puddingfjz via TVM Discuss
Hi, I tried the following code: ``` # logging config (for printing tuning log to screen) logging.getLogger('autotvm').setLevel(logging.DEBUG) logging.getLogger('autotvm').addHandler(logging.StreamHandler(sys.stdout)) # the last layer in resnet N, H, W, CO, CI, KH, KW, strides, padding = 1, 7, 7

[TVM Discuss] [Questions] [ TOPI ] Winograd convolution performance is too slow

2020-04-05 Thread Puddingfjz via TVM Discuss
Hi, I am now trying to use AutoTVM to tune the templates for different operators, but I do not know where exactly those templates which are already implemented by tvm are. Could you help me on this? Also, are there any examples or tutorials on how to use these templates? And from the Tuning H