Skip to content

Commit

Permalink
frontend.py: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Nov 1, 2023
1 parent c317af1 commit dd00c6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mlonmcu/models/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def produce_artifacts(self, model):
ext = self.input_formats[0].extension
with open(path, "rb") as handle: # TODO: is an onnx model raw data or text?
raw = handle.read()
artifacts.append(Artifact(f"{name}.{ext}", raw=raw, fmt=ArtifactFormat.RAW), flags=["model"])
artifacts.append(Artifact(f"{name}.{ext}", raw=raw, fmt=ArtifactFormat.RAW, flags=["model"]))
return artifacts


Expand Down Expand Up @@ -304,7 +304,7 @@ def produce_artifacts(self, model):
ext = self.input_formats[0].extension
with open(path, "rb") as handle:
raw = handle.read()
artifacts.append(Artifact(f"{name}.{ext}", raw=raw, fmt=ArtifactFormat.RAW), flags=["model"])
artifacts.append(Artifact(f"{name}.{ext}", raw=raw, fmt=ArtifactFormat.RAW, flags=["model"]))

if not self.visualize_enable:
assert len(self.output_formats) == 1
Expand Down Expand Up @@ -431,7 +431,7 @@ def produce_artifacts(self, model):
ext = self.input_formats[0].extension
with open(path, "rb") as handle: # TODO: is an onnx model raw data or text?
raw = handle.read()
artifacts.append(Artifact(f"{name}.{ext}", raw=raw, fmt=ArtifactFormat.RAW), flags=["model"])
artifacts.append(Artifact(f"{name}.{ext}", raw=raw, fmt=ArtifactFormat.RAW, flags=["model"]))

if not self.visualize_graph:
assert len(self.output_formats) == 1
Expand Down

0 comments on commit dd00c6e

Please sign in to comment.