mehrdadh commented on a change in pull request #9993:
URL: https://github.com/apache/tvm/pull/9993#discussion_r791029565
##########
File path: gallery/how_to/work_with_microtvm/micro_tflite.py
##########
@@ -192,21 +197,13 @@
# board to generated the right firmware image.
#
-import json
-import pathlib
+boards_file = pathlib.Path(tvm.micro.get_microtvm_template_projects("zephyr"))
/ "boards.json"
+with open(boards_file) as f:
+ boards = json.load(f)
+
+BOARD = os.getenv("TVM_MICRO_BOARD", default="nucleo_f746zg")
+TARGET = tvm.target.target.micro(boards[BOARD]["model"])
Review comment:
nope, that was incorrect. fixed it.
Thanks!
--
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]