[Apache TVM Discuss] [Questions] Any more explanation of opt_level?

2021-06-29 Thread Chou Meng Wai via Apache TVM Discuss
In ```tvm.transform.Passcontext```, one of parameters is ```opt_level```, the explanation is " The optimization level of this pass.". Are there any more detail explanation of it? what is the difference between ```opt_level = 1``` and ```opt_level = 2```? what will happen while ```opt_level = 1

[Apache TVM Discuss] [Questions] Cuda is not enable while using pycharm to remote debug

2021-06-29 Thread Chou Meng Wai via Apache TVM Discuss
Should add tvm/python to the paths of interpreter ! --- [Visit Topic](https://discuss.tvm.apache.org/t/cuda-is-not-enable-while-using-pycharm-to-remote-debug/10323/2) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here]

[Apache TVM Discuss] [Questions] How to generate a function header file when using CodeGen?

2021-06-29 Thread cho. via Apache TVM Discuss
I wrote a script to generate the corresponding header file,and it works(without GetFunction.). --- [Visit Topic](https://discuss.tvm.apache.org/t/how-to-generate-a-function-header-file-when-using-codegen/10302/2) to respond. You are receiving this because you enabled mailing list mode.

[Apache TVM Discuss] [Questions] Add Evaluators to Debug Executor

2021-06-29 Thread Tristan Konolige via Apache TVM Discuss
I've updated my branch, so an environment variable is no longer used to set the metrics. Here is an example of how to do it now: https://github.com/tkonolige/incubator-tvm/blob/profiler_papi/tests/python/unittest/test_runtime_profiling.py#L86-L104 --- [Visit Topic](https://discuss.tvm.apa

[Apache TVM Discuss] [Questions] How to manually controll CPU affinity in multithreading scenario?

2021-06-29 Thread Xiu Zhiping via Apache TVM Discuss
Hello, I have a machine with 40 cpu cores, and a process that runs a TVM application on 10 threads. I wish that each TVM thread will use 4 cpu cores so I set TVM_NUM_THREADS=4. Then what happens is without cpu affinity (TVM_BIND_THREADS=0), the 10 threads will try to occupy cpus randomly, sl

[Apache TVM Discuss] [Questions] [Relay] [NN] Does relay.nn.dense supports multi-dimensional input?

2021-06-29 Thread 张天启
Thanks for the reply. I also find `relay.nn.batch_matmul` has a similar problem (no transpose for `y`). --- [Visit Topic](https://discuss.tvm.apache.org/t/relay-nn-does-relay-nn-dense-supports-multi-dimensional-input/10343/3) to respond. You are receiving this because you enabled mailing

[Apache TVM Discuss] [Questions] [Relay] [NN] Does relay.nn.dense supports multi-dimensional input?

2021-06-29 Thread Chenfan via Apache TVM Discuss
Emm ... This seems to be a flaky problem. The op representation of `dense` in relay support multi-dim(exp. doc string, shape functions), while the current computation(exp. `topi.nn.dense`) does not. I guess that dense op is desinged to support multi-dim, but guys only added simpler computatio

[Apache TVM Discuss] [Application] [Relay] [NN] Does relay.nn.dense supports multi-dimensional input?

2021-06-29 Thread 张天启
The [doc](https://tvm.apache.org/docs/api/python/relay/nn.html#tvm.relay.nn.dense) says `relay.nn.dense` can have input tensors with shape `(d_1, d_2, …, d_n, units_in)`. However when I use a 3d tensor as the input of dense, I get this error: ``` File "/root/anaconda3/envs/tvm0.8-dev/lib/