Skip to content

Commit

Permalink
[fix] pass input/output shapes/types to backends
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Jan 26, 2024
1 parent 2be3339 commit d453008
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mlonmcu/session/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,17 @@ def _build():
model_artifact = model_artifact[0]
if not model_artifact.exported:
model_artifact.export(self.dir)
self.backend.load_model(model=model_artifact.path)
input_shapes = self.model.input_shapes
output_shapes = self.model.output_shapes
input_types = self.model.input_types
output_types = self.model.output_types
self.backend.load_model(
model=model_artifact.path,
input_shapes=input_shapes,
output_shapes=output_shapes,
input_types=input_types,
output_types=output_types,
)
_build()

self.sub_names.extend(self.artifacts_per_stage[RunStage.BUILD])
Expand Down

0 comments on commit d453008

Please sign in to comment.