From 04d33e6596fda3451fca8f94cc48d5b1bab64b1e Mon Sep 17 00:00:00 2001 From: Taketoshi Fujiwara Date: Mon, 13 Apr 2020 18:30:06 +0900 Subject: [PATCH] Fixed pep8 errors "F405" in converter --- blueoil/converter/__init__.py | 2 +- blueoil/converter/core/operators.py | 6 ++++-- blueoil/converter/core/params.py | 2 +- blueoil/converter/core/view.py | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/blueoil/converter/__init__.py b/blueoil/converter/__init__.py index 07902eaca..08967281a 100644 --- a/blueoil/converter/__init__.py +++ b/blueoil/converter/__init__.py @@ -13,6 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================= -from .env import * +from .env import MAX_CPU_COUNT __all__ = ['MAX_CPU_COUNT'] diff --git a/blueoil/converter/core/operators.py b/blueoil/converter/core/operators.py index c60b316d3..77642bfee 100644 --- a/blueoil/converter/core/operators.py +++ b/blueoil/converter/core/operators.py @@ -20,12 +20,14 @@ from termcolor import colored from abc import abstractmethod from itertools import dropwhile -from typing import TYPE_CHECKING, Any, Dict, Optional, cast +from typing import TYPE_CHECKING, Any, Dict, List, Optional, cast + +import numpy as np from blueoil.converter.core.view import View from blueoil.converter.util import classproperty -from .data_types import * +from .data_types import DataType if TYPE_CHECKING: import blueoil.converter.core.operators as ops diff --git a/blueoil/converter/core/params.py b/blueoil/converter/core/params.py index ffe830aac..58abb881c 100644 --- a/blueoil/converter/core/params.py +++ b/blueoil/converter/core/params.py @@ -17,7 +17,7 @@ from typing import List from blueoil.converter.core.config import Config -from blueoil.converter.core.data_types import * +from blueoil.converter.core.data_types import Uint32 from blueoil.converter.core.operators import Conv diff --git a/blueoil/converter/core/view.py b/blueoil/converter/core/view.py index 981f60506..c3c0660e5 100644 --- a/blueoil/converter/core/view.py +++ b/blueoil/converter/core/view.py @@ -16,7 +16,7 @@ import copy from textwrap import dedent, indent -from blueoil.converter.core.data_types import * +from blueoil.converter.core.data_types import QUANTIZED_PACKED class View(object):