aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/vela.py
diff options
context:
space:
mode:
authorPatrik Gustavsson <patrik.gustavsson@arm.com>2021-08-23 15:33:59 +0200
committerpatrik.gustavsson <patrik.gustavsson@arm.com>2021-09-03 12:19:48 +0000
commitdf99510f04aef99d1b8e9be9bfcde8fc1738b65f (patch)
tree00668b0e74f95da5cc51a41b9340d8c88fbc7ffe /ethosu/vela/vela.py
parentcce872bc3de3ed5f9bf1aa1a8cf9ce41cf2b2520 (diff)
downloadethos-u-vela-df99510f04aef99d1b8e9be9bfcde8fc1738b65f.tar.gz
TOSA: Added Depthwise support
This is mainly to add support for depthwise conv2d with dephmultiplier = 1. (But there are no testcases suited, all I have sourced has depth_multiplier set to 2, which is not supported.) -Added support for depthwise conv2d. -Added support for removing Transpose of constant data -Added support for removing reshape Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com> Change-Id: I143e6246becfa78fd9f7510af0bf0d6b3fbbf2c7
Diffstat (limited to 'ethosu/vela/vela.py')
-rw-r--r--ethosu/vela/vela.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/vela.py b/ethosu/vela/vela.py
index 94487499..6c9fbce2 100644
--- a/ethosu/vela/vela.py
+++ b/ethosu/vela/vela.py
@@ -85,7 +85,7 @@ def process(input_name, enable_debug_db, arch, model_reader_options, compiler_op
)
output_tfl_filename = output_basename + "_vela.tflite"
- if input_name.endswith(".tflite"):
+ if input_name.endswith(".tflite") or input_name.endswith(".tosa"):
tflite_writer.write_tflite(nng, output_tfl_filename)
if input_name.endswith(".tosa"):
rawdata_writer.write_rawdata_output(nng, arch, output_basename)