[ETHOSN] Add support for experimental compiler option#13410
[ETHOSN] Add support for experimental compiler option#13410asparkhi merged 2 commits intoapache:mainfrom
Conversation
|
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment. Generated by tvm-bot |
| // Now set the required build flags | ||
| sl::CompilationOptions options = CreateOptions(); | ||
| // Finally compile the network | ||
| // Set the experimental compiler if enabled, for now this is not part of the |
There was a problem hiding this comment.
Setting and unsetting the variable from here means that its being set multiple times during the compilation. Is there a better place from where it gets set/unset only once?
There was a problem hiding this comment.
my thinking was to reduce the scope of the environment variable to the support library, since its not prefixed in any way there's always the (small!) chance the same variable can be used elsewhere. We could move the scope to the NPU codegen instead
There was a problem hiding this comment.
Another option could be to look for this option from just the tvmc frontend functions and set/unset it from python for the entire invocation of the tvmc. Maybe that leaves the EthosN code cleaner. Are there any downsides of doing that though? 🤔
43cb690 to
c705665
Compare
The support library currently supports enabling the experimental cascading compiler option via an environment variable `FORCE_EXPERIMENTAL_COMPILER`. This commit exposes the ability to enable this option through TVMC. Change-Id: Ie5667a300f35f99bc8f92d780a56894ef9bbe3ad
* Remove unused code * Add negative test case Change-Id: I5e12d070554954e320b4d15c02d5e2ada179fce5
c705665 to
fc47f98
Compare
* [ETHOSN] Add support for experimental compiler option The support library currently supports enabling the experimental cascading compiler option via an environment variable `FORCE_EXPERIMENTAL_COMPILER`. This commit exposes the ability to enable this option through TVMC.
* [ETHOSN] Add support for experimental compiler option The support library currently supports enabling the experimental cascading compiler option via an environment variable `FORCE_EXPERIMENTAL_COMPILER`. This commit exposes the ability to enable this option through TVMC.
The support library currently supports enabling the experimental cascading compiler option via an environment variable
FORCE_EXPERIMENTAL_COMPILER. This commit exposes the ability to enable this option through TVMC.