Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Jun 23, 2022
1 parent 65a9844 commit f3b8ca1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mlonmcu/platform/microtvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from mlonmcu.artifact import Artifact, ArtifactFormat

from mlonmcu.flow.tvm.backend.python_utils import prepare_python_environment
from mlonmcu.flow.tvm.backend.tvmc_utils import get_data_tvmc_args
from mlonmcu.flow.tvm.backend.tvmc_utils import get_bench_tvmc_args, get_data_tvmc_args

from .platform import CompilePlatform, TargetPlatform
from .microtvm_target import create_microtvm_target
Expand Down
4 changes: 2 additions & 2 deletions mlonmcu/session/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ def add_postprocesses(self, postprocesses, append=False):
def add_feature(self, feature):
"""Setter for a feature instance."""
self.features = [feature]
self.run_features = self.process_features(features)
self.run_features = self.process_features(self.features)
self.run_config = filter_config(self.run_config, "run", self.DEFAULTS, self.REQUIRED)

def add_features(self, features, append=False):
"""Setter for the list of features."""
self.features = features if not append else self.features + features
self.run_features = self.process_features(features)
self.run_features = self.process_features(self.features)
self.run_config = filter_config(self.run_config, "run", self.DEFAULTS, self.REQUIRED)

def pick_model_frontend(self, model_hints, backend=None):
Expand Down
2 changes: 2 additions & 0 deletions mlonmcu/target/corstone300.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from pathlib import Path

from mlonmcu.logging import get_logger
from mlonmcu.feature.features import SUPPORTED_TVM_BACKENDS
from .common import cli, execute
from .target import Target
from .metrics import Metrics
Expand Down Expand Up @@ -213,6 +214,7 @@ def get_backend_config(self, backend):
if self.enable_dsp:
pass
# ret.update({"desired_layout": "NHWC,HWOI"}) # NOt yet supported by upstream TVMC
return ret
return {}


Expand Down

0 comments on commit f3b8ca1

Please sign in to comment.