[Apache TVM Discuss] [Questions] [Rust Runtime][WASM] How to compile the model loading+execution to WASM

2022-06-20 Thread barak3d via Apache TVM Discuss
Hi, I've started experimenting with TVM for a few weeks now. I would like to encapsulate the TVM runtime model loading and model execution into a WASM that can run in the browser. The purpose of this experiment is mainly for security, I want the ability to decrypt encrypted model files (graph

[Apache TVM Discuss] [Questions] [BYOC] Is there a way to export accelerator specific mesurements

2022-06-20 Thread MartinF via Apache TVM Discuss
Hi @fPecc, thank you very much for pointing out your original question. I did not find it when searching for this topic. Did you already figure out a practicle way for integrating `MetricCollector` in your Codegen and access the tracked data? The simulator I'm using simulates the device on the

[Apache TVM Discuss] [Questions] [BYOC] Is there a way to export accelerator specific mesurements

2022-06-20 Thread F Pecc via Apache TVM Discuss
Hi @MartinF, I recently stumble accross the same use case, because I have exactly the same situation with a BYOC accelerator. You will find my original question [here](https://discuss.tvm.apache.org/t/pre-rfc-crt-microtvm-integration-of-platform-specific-counters-or-any-data/12724), and also

[Apache TVM Discuss] [Questions] [BYOC] Is there a way to export accelerator specific mesurements

2022-06-20 Thread MartinF via Apache TVM Discuss
Hello, I build a BYOC C-Codegen for an accelarator. The accelerator currently only exists as a simulator but is already included. The simulator itself has functions to measur cycles needed to perform the generated code. Since I would like to evaluate the results for a profiling, I'm looking f

[Apache TVM Discuss] [Questions] Why SimplifyInference use CreateFunctionPass to create Pass

2022-06-20 Thread 578881718 via Apache TVM Discuss
yes,you are right. but SimplifyInferencePass ,this pass add some new node to the graph. but CreateFunctionPass just update one node of raw IRModule. --- [Visit Topic](https://discuss.tvm.apache.org/t/why-simplifyinference-use-createfunctionpass-to-create-pass/12979/3) to respond. You are

[Apache TVM Discuss] [Questions] Why SimplifyInference use CreateFunctionPass to create Pass

2022-06-20 Thread Junru Shao via Apache TVM Discuss
Thanks for asking! If I understand correctly, `CreateFunctionPass` creates a pass that applies to every single Relay function in an IRModule, which means it won't miss any Function there --- [Visit Topic](https://discuss.tvm.apache.org/t/why-simplifyinference-use-createfunctionpass-to-cre