Skip to content

Commit

Permalink
fix refresh_model_info feature for tvm backends
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Jan 11, 2024
1 parent 9c34132 commit 7165cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlonmcu/flow/tvm/backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def generate(self) -> Tuple[dict, dict]:
artifacts = []
assert self.model is not None
dump = self.dump
if self.generate_wrapper and not self.model_info and "relay" not in dump:
if self.refresh_model_info or (self.generate_wrapper and not self.model_info) and "relay" not in dump:
dump.append("relay")
with tempfile.TemporaryDirectory() as temp_dir:
out_path = Path(temp_dir) / f"{self.prefix}.tar"
Expand Down

0 comments on commit 7165cf2

Please sign in to comment.