aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/vela.py
diff options
context:
space:
mode:
authorwilisa01 <william.isaksson@arm.com>2023-02-08 09:56:14 +0000
committerFredrik Svedberg <fredrik.svedberg@arm.com>2023-02-15 15:25:25 +0000
commit46c9477ded912f26ddf0a761c728d23f7d616004 (patch)
tree52dfd6f42239da31a6c498795756779ae2ff150d /ethosu/vela/vela.py
parent16b5e5e2d79564c7bb82ce6750cb2aec205d6621 (diff)
downloadethos-u-vela-46c9477ded912f26ddf0a761c728d23f7d616004.tar.gz
MLBEDSW-7211: Convert fixup_asymmetric_weights to supported ops check
Changed default behaviour to place int8 ops with asymmetric quantization on cpu, and added an option to force symmetric quantization Change-Id: Ib9b717aaf61eae78833254ca3dfa745f4f253dc6 Signed-off-by: wilisa01 <william.isaksson@arm.com>
Diffstat (limited to 'ethosu/vela/vela.py')
-rw-r--r--ethosu/vela/vela.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ethosu/vela/vela.py b/ethosu/vela/vela.py
index b5dfd80c..c44c7894 100644
--- a/ethosu/vela/vela.py
+++ b/ethosu/vela/vela.py
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: Copyright 2020-2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -377,6 +377,11 @@ def main(args=None):
)
parser.add_argument("--timing", action="store_true", help="Time the compiler doing operations")
parser.add_argument(
+ "--force-symmetric-int-weights",
+ action="store_true",
+ help="Forces all zero points to 0 for signed integer weights",
+ )
+ parser.add_argument(
"--accelerator-config",
type=str,
default="ethos-u55-256",
@@ -553,6 +558,7 @@ def main(args=None):
show_cpu_operations=args.show_cpu_operations,
tensor_allocator=args.tensor_allocator,
timing=args.timing,
+ force_symmetric_int_weights=args.force_symmetric_int_weights,
output_dir=args.output_dir,
cpu_tensor_alignment=args.cpu_tensor_alignment,
hillclimb_max_iterations=args.hillclimb_max_iterations,