From c30f495dc013a73e371dd8053a0381e4707ab309 Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Mon, 15 Jun 2020 20:47:35 +0100 Subject: Code clean-up using black and flake8 - No functional change Signed-off-by: Tim Hall Change-Id: I5ab1198b9d092cd041fa9b85b2dee9900d299bfc --- ethosu/vela/tflite_reader.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ethosu/vela/tflite_reader.py') diff --git a/ethosu/vela/tflite_reader.py b/ethosu/vela/tflite_reader.py index 84c4c3c2..5667aff5 100644 --- a/ethosu/vela/tflite_reader.py +++ b/ethosu/vela/tflite_reader.py @@ -20,7 +20,6 @@ import os.path import numpy as np from .errors import InputFileError -from .errors import UnsupportedFeatureError from .nn_graph import Graph from .nn_graph import Subgraph from .operation import Operation @@ -229,7 +228,7 @@ class TFLiteGraph: def parse_operator_code(self, code): c = code.BuiltinCode() - if not c in builtin_operator_map: + if c not in builtin_operator_map: msg = "The input file contains operator code {} which is currently not supported".format(c) raise InputFileError(self.name, msg) op_type, ser = builtin_operator_map[c] -- cgit v1.2.1