Skip to content

Commit

Permalink
[#56762] optimizers: tvm: Made zephyr_template_header optional
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Latosinski <glatosinski@antmicro.com>
  • Loading branch information
glatosinski committed Mar 25, 2024
1 parent 129d111 commit bb13366
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kenning/optimizers/tvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ def generator():
with open(outputpath.with_suffix(".c"), "w") as ops_f:
ops_f.write(lib.get_lib().get_source())

if not self.zephyr_template_header:
return None

# extract TVM functions from source file
tvm_funcs = list(
set(
Expand Down

0 comments on commit bb13366

Please sign in to comment.