Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp v. K committed Jul 27, 2024
1 parent 0ed37d3 commit fd3d353
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mlonmcu/flow/tflm/backend/tflmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,11 @@ def convert_op_name(op):
if len(registrations) > 0:
raise NotImplementedError
if ops_resolver == "mutable":
assert len(ops) > 0, (
"No ops specified for ops_resolver=mutable!" "Set model ops in definition.yml or use ops_resolver=all"
)
assert (
len(ops) > 0
), "No ops specified for ops_resolver=mutable!Set model ops in definition.yml or use ops_resolver=all"
elif ops_resolver == "all":
raise RuntimeError(
"AllOpsResolver was removed from TFLM!" "Use ops_resolver=mutable or ops_resolver=fallback"
)
raise RuntimeError("AllOpsResolver was removed from TFLM!Use ops_resolver=mutable or ops_resolver=fallback")
elif ops_resolver == "fallback":
ops_resolver = "mutable"
# Defines common operators which are used in many models
Expand Down

0 comments on commit fd3d353

Please sign in to comment.