diff options
author | Diego Russo <diego.russo@arm.com> | 2020-04-21 17:39:10 +0100 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2020-06-18 17:53:52 +0100 |
commit | e8a10454eba4c7392cb301fbfbe796e5bfb2b729 (patch) | |
tree | 8e54bffd46c55848a86040d3588b5365ef019d8f /ethosu/vela/weight_compressor.py | |
parent | 3ec04ac9e38d26193e0081a8e0fa3b8b667bb688 (diff) | |
download | ethos-u-vela-e8a10454eba4c7392cb301fbfbe796e5bfb2b729.tar.gz |
Add reorder-python-import pre-commit hook
Also updated README.md
Change-Id: I118309c61f4d00e8508d6b888c606995490fba39
Signed-off-by: Diego Russo <diego.russo@arm.com>
Diffstat (limited to 'ethosu/vela/weight_compressor.py')
-rw-r--r-- | ethosu/vela/weight_compressor.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ethosu/vela/weight_compressor.py b/ethosu/vela/weight_compressor.py index ee554b5c..04d684e6 100644 --- a/ethosu/vela/weight_compressor.py +++ b/ethosu/vela/weight_compressor.py @@ -13,25 +13,25 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - - # Description: # Compresses and pads the weigths. It also calculates the scales and packs with the biases. - import math from collections import namedtuple import numpy as np +from ethosu import mlw_codec -from .numeric_util import round_up -from .scaling import quantise_scale, reduced_quantise_scale -from .tensor import TensorPurpose, TensorSubPurpose, TensorFormat, TensorBlockTraversal -from .operation import NpuBlockType from .architecture_features import Block -from .nn_graph import SchedulingStrategy from .data_type import DataType - -from ethosu import mlw_codec +from .nn_graph import SchedulingStrategy +from .numeric_util import round_up +from .operation import NpuBlockType +from .scaling import quantise_scale +from .scaling import reduced_quantise_scale +from .tensor import TensorBlockTraversal +from .tensor import TensorFormat +from .tensor import TensorPurpose +from .tensor import TensorSubPurpose def encode(weight_stream): |