[Apache TVM Discuss] [Questions] Intrinsic Function with Constant Input Array

2021-05-12 Thread tqchen via Apache TVM Discuss
In this case we should make it a runtime array. This is also how relay handles constants --- [Visit Topic](https://discuss.tvm.apache.org/t/intrinsic-function-with-constant-input-array/9955/4) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from

[Apache TVM Discuss] [Questions] Intrinsic Function with Constant Input Array

2021-05-12 Thread moderato via Apache TVM Discuss
Thanks for the reply! > If you want to inline a constant array(that is really small), you can attempt > to use select to dispatch each index to the value. Do you mean putting all the values I wanna pass in the C API individually? In my case, the array size would be around 100 so I think I hav

[Apache TVM Discuss] [Questions] Question: BYOC : replace nn.conv2d() to our nucfpga_conv2d()

2021-05-12 Thread Cody H. Yu via Apache TVM Discuss
This doesn't look right tho. It should be like ``` %1 = fn(..., kPrimitive=1, kCompiler="nuc_fpga") { nn.conv2d(...); } %2 = %1(...); %3 = nn.bias_add(...); %4 = nn.relu(...); ``` Please check your annotation rules. --- [Visit Topic](https://discuss.tvm.apache.org/t/question-byoc-replac

[Apache TVM Discuss] [Questions] RuntimeError: Could not find 'input_1' in graph's inputs

2021-05-12 Thread Evans via Apache TVM Discuss
the model `resnet20-cifar100_origin.pb` link: https://drive.google.com/file/d/1s2K8uZP5CMfZEDm5AaQ66gN5sF0iXhyd/view?usp=sharing --- [Visit Topic](https://discuss.tvm.apache.org/t/runtimeerror-could-not-find-input-1-in-graphs-inputs/9890/8) to respond. You are receiving this because you

[Apache TVM Discuss] [Questions] RuntimeError: Could not find 'input_1' in graph's inputs

2021-05-12 Thread Evans via Apache TVM Discuss
Sad to tell you that I don't find any similar name from `irmod` You can access the full content of `irmod` from the link: https://drive.google.com/file/d/1Ptgp4H4cLc4T-ZnLcUH_LP9op4ZFd8bR/view?usp=sharing --- [Visit Topic](https://discuss.tvm.apache.org/t/runtimeerror-could-not-find-input

[Apache TVM Discuss] [Questions] RuntimeError: Could not find 'input_1' in graph's inputs

2021-05-12 Thread masahi via Apache TVM Discuss
sorry what you need is `print(irmod)`. Look for the name after `main` like below: ``` def @main(%input_tensor:0: Tensor[(1, 300, 300, 3), uint8]) -> (Tensor[(1, 100, 4), float32], Tensor[(1, 100), float32], Tensor[(1, 100), float32], Tensor[(1), float32]) { ``` --- [Visit Topic](https:/

[Apache TVM Discuss] [Questions] Is the inconsistency, which doesn't cause the classification error, a bug?

2021-05-12 Thread Evans via Apache TVM Discuss
When using a pictures as input to the model before and after compiling by TVM, the prediction results are slightly inconsistent. However, it did not cause a classification error `np.testing.assert_allclose(frame_output, tvm_output, rtol=1e-3, atol=1e-3)` is used as the criterion. Can such

[Apache TVM Discuss] [Questions] Intrinsic Function with Constant Input Array

2021-05-12 Thread tqchen via Apache TVM Discuss
right now constant arrays are still being processed as normal array in memory. this requirement is due to the fact that the intrinsic function have to follow C API convention. If you want to inline a constant array(that is really small), you can attempt to use select to dispatch each index to

[Apache TVM Discuss] [Questions] RuntimeError: Could not find 'input_1' in graph's inputs

2021-05-12 Thread Evans via Apache TVM Discuss
The `graph` content generated by relay.build_module.build() is as following: ![image|201x500](upload://7HjsOCpTimebBABPjsjtjW6CeBO.png) I don't know which field represents input name. In addition, I added a few lines of code, which have a background color, to print the input layer informatio

[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] RuntimeError: Could not find 'input_1' in graph's inputs

2021-05-12 Thread masahi via Apache TVM Discuss
Can you try `print(graph)` and see what input name it expects. --- [Visit Topic](https://discuss.tvm.apache.org/t/runtimeerror-could-not-find-input-1-in-graphs-inputs/9890/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [clic

[Apache TVM Discuss] [Questions] RuntimeError: Could not find 'input_1' in graph's inputs

2021-05-12 Thread Evans via Apache TVM Discuss
@tqchen @masahi Could you give me some advice? Thanks very match. --- [Visit Topic](https://discuss.tvm.apache.org/t/runtimeerror-could-not-find-input-1-in-graphs-inputs/9890/2) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails,

[Apache TVM Discuss] [Questions] Question about cach_read in Ansor

2021-05-12 Thread asdlalala via Apache TVM Discuss
Thanks a lot for your explanation! :grinning: --- [Visit Topic](https://discuss.tvm.apache.org/t/question-about-cach-read-in-ansor/9940/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.

[Apache TVM Discuss] [Questions] Question about cach_read in Ansor

2021-05-12 Thread Chenfan via Apache TVM Discuss
Actually Ansor has "local" memory in some special case. The two level cache read structure has been tried at the beginning when we built the Ansor system. And It's still easy for Ansor to add such sketches in the current main branch. Ansor is a tuning based schedule search system, which means