UlrikHjort-Bosch commented on issue #10237:
URL: https://github.com/apache/tvm/issues/10237#issuecomment-1156435308
> You create a `LocalBuilder` object with the following, but I believe this
is what `micro_autotune.py` does already:
>
> ```python
> RUNTIME = tvm.relay.backend.Runtime("crt", {"system-lib": True})
> builder = tvm.autotvm.LocalBuilder(
> n_parallel=1,
> build_kwargs={"build_option": {"tir.disable_vectorize": True}},
> do_fork=False,
> build_func=tvm.micro.autotvm_build_func,
> runtime=RUNTIME,
> )
> ```
>
> I've got a few ideas for similar issues that could cause the same error,
but I don't have a Zephyr board with me to test right now. @mehrdadh would know
the most. However, [here's a
link](https://gist.github.com/guberti/67bda65c792df408bb87260a2b110700) to a
Gist showing a working autotune script for microTVM on Arduino, which may be
useful as a cross reference. I've also [linked a
model](https://github.com/apache/tvm/files/8902826/quantized.zip) which I know
works with the script, so we can ensure that's not the issue
Thanks for you reply. For some reason there was no runtime parameter in my
micro_autotune.py. I went to the tutorial page and could see it was there in
the example. I downloaded micro_autotune.py again from there and now it
suddenly have the parameter and all works fine when I run it. I dont know if it
have been updated lately ?
Just FYI I attached the non working micro_autotune.py (had to rename it to
.txt to be able to attach)
[micro_autotune.txt](https://github.com/apache/tvm/files/8909421/micro_autotune.txt)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]