[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-10 Thread Wheest via Apache TVM Discuss
If your final output is incorrect, the first step I would try is to see what it should be in the original framework. For example, if your model is in PyTorch, pass some input data, and save the output. Then, export to TVM, and pass it the same input data. If the output from TVM is different

[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-09 Thread chenugray via Apache TVM Discuss
cause tvm leave no origin network layers infomation in the tvm graph, so how can i use dump data compared with orgin network layers? for exmaple, the bert-large has 2000+ ops, but which op related to origin layer is hard to figure out. when you face accuracy problem, you dump the data and com

[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-06 Thread Wheest via Apache TVM Discuss
You say that the output is not correct, can you provide a reproducible example of what model you are running, and how? Perhaps there is an issue there. To answer your question, [this part of the documentation](https://tvm.apache.org/docs/arch/debugger.html#how-to-use-debugger) takes you thro

[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-06 Thread chenugray via Apache TVM Discuss
> All the tensors will be saved as binary bytes in serialized format. The > result binary bytes can be loaded by the API “load_params”. how can we achive binary bytes in serialized format? does "./_tvmdbg_device_CPU_0/output_tensors.params" contains all layers outputs? then we get data, how to

[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-06 Thread Wheest via Apache TVM Discuss
Sure, you can see an example of how to use the `debug_executor` in [this part of the docs](https://tvm.apache.org/docs/arch/debugger.html#how-to-use-debugger). The tensors will be dumped to a file, and you can then load this data using code such as: ```python data = relay.load_param_dict(by

[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-06 Thread chenugray via Apache TVM Discuss
thx, could u give me some concrete example? --- [Visit Topic](https://discuss.tvm.apache.org/t/what-if-the-result-is-not-correct/11858/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.o

[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-06 Thread Wheest via Apache TVM Discuss
Hi there, you can use the `debug_executor` to get the intermediate results. You can see details [discussed in this forum thread](https://discuss.tvm.apache.org/t/tvm-runtime-print-intermediate-outputs/10124). You will need to have a ground truth to compare against, depending on what framework

[Apache TVM Discuss] [Questions] What if the result is not correct?

2022-01-06 Thread chenugray via Apache TVM Discuss
@tqchen Any Methods to debug to know which intermediate layer outputs is not correct. i seach the whole formu, but cant get answer. --- [Visit Topic](https://discuss.tvm.apache.org/t/what-if-the-result-is-not-correct/11858/1) to respond. You are receiving this because you enabled mailing