aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/vela.py
diff options
context:
space:
mode:
authorPatrik Gustavsson <patrik.gustavsson@arm.com>2020-08-24 16:26:11 +0200
committertim.hall <tim.hall@arm.com>2020-08-26 09:37:01 +0000
commit90831bc18d45008b703e59aad0594026beb7da82 (patch)
tree6b647996160ba8ecd037da1e15c91f55d4b0f665 /ethosu/vela/vela.py
parentd47cc2777f3a3f371958c30a3c1880f692b0b0a2 (diff)
downloadethos-u-vela-90831bc18d45008b703e59aad0594026beb7da82.tar.gz
MLBED-2822 Added CLI-opt for weight size est.
Added --weight-estimation-scaling, which enables additional scaling of weight compression scale estimate. Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com> Change-Id: Idcda41257f44901d3a3f345341e07fb1ae8585a9
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 97cc8736..19080926 100644
--- a/ethosu/vela/vela.py
+++ b/ethosu/vela/vela.py
@@ -260,7 +260,12 @@ def main(args=None):
choices=[True, False],
help="Control if Softmax should be transformed into a set of npu operations (default: %(default)s)",
)
-
+ parser.add_argument(
+ "--weight-estimation-scaling",
+ type=float,
+ default=1.0,
+ help=("Performs an additional scaling of weight compression scale estimate (default: %(default)s)"),
+ )
args = parser.parse_args(args=args)
# Read configuration file
@@ -291,6 +296,7 @@ def main(args=None):
global_memory_clock_scale=args.global_memory_clock_scale,
max_blockdep=args.max_block_dependency,
softmax_support=args.softmax_support,
+ weight_estimation_scaling=args.weight_estimation_scaling,
)
compiler_options = compiler_driver.CompilerOptions(