diff options
author | Dwight Lidman <dwight.lidman@arm.com> | 2020-04-30 11:54:48 +0200 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2020-06-18 17:53:52 +0100 |
commit | 3ec04ac9e38d26193e0081a8e0fa3b8b667bb688 (patch) | |
tree | d4c961583bbe7ff47a9a0313d72ff0871a44b72d /ethosu/vela/supported_operators.py | |
parent | 1629f331810de8ebff018259c75ee024857472e5 (diff) | |
download | ethos-u-vela-3ec04ac9e38d26193e0081a8e0fa3b8b667bb688.tar.gz |
MLBEDSW-1498: Add Resize_Bilinear operator support
This patch adds support for the ResizeBilinear operator.
It is implemented using a 2x2 Nearest Neighbor upscale
followed by a 2x2 Average Pool.
Depending on the argument align_corners
the output is either of shape:
- (2 * M, 2 * N) when align_corners == True, or
- (2 * M - 1, 2 * N - 1) when align_corners == False
where (M, N) is the input shape.
The padding mode is SAME when align_corners == True
and VALID when align_corners == False.
The argument half_pixel_centers is out of scope and is
as of now ignored.
Note that only upscaling by a factor of 2 is supported.
Change-Id: Ia6d6d010c4f1bb13f5f839bc8d16872a626d9a3b
Signed-off-by: Dwight Lidman <dwight.lidman@arm.com>
Diffstat (limited to 'ethosu/vela/supported_operators.py')
-rw-r--r-- | ethosu/vela/supported_operators.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py index 1a25887f..7334fe25 100644 --- a/ethosu/vela/supported_operators.py +++ b/ethosu/vela/supported_operators.py @@ -44,6 +44,8 @@ class SupportedOperators: | self.fc_vector_products # RNN/LSTM/GRU | set(("BlockLSTM")) + # deconvolution + | set(("ResizeBilinear",)) ) self.unary_elem_wise_main_ops = set(("LeakyRelu", "Abs")) self.binary_elem_wise_main_ops = set( |