From 85b77901b72865cc0071f294bd9177288c0bc4e3 Mon Sep 17 00:00:00 2001 From: Johan Alfven Date: Thu, 15 Jun 2023 09:24:01 +0200 Subject: MLBEDSW-7709: MLCE: Crash when rewriting split op - A crash occurred due to NoneType subscriptable error when rewriting a Slice op. The reason was that the Size tensor did not contain any data. - Added constraint pushing the Slice operator to the CPU if begin or size tensor are empty. - Added test to supported operators - Updated SUPPORTED_OPS.md Change-Id: Ide204cae24e5871f0e6ae1fdc98ac68d0ce4d3ae Signed-off-by: Johan Alfven --- SUPPORTED_OPS.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'SUPPORTED_OPS.md') diff --git a/SUPPORTED_OPS.md b/SUPPORTED_OPS.md index fdceb43c..5258946c 100644 --- a/SUPPORTED_OPS.md +++ b/SUPPORTED_OPS.md @@ -19,7 +19,7 @@ limitations under the License. # Supported Ops This file was automatically generated by Vela using the `--supported-ops-report` parameter. -Vela version: `3.8.1.dev3+gc66541d` +Vela version: `3.8.1.dev7+g0f09dd2` This file complies with [**Gitiles Markdown syntax**](https://github.com/google/gitiles/blob/master/Documentation/markdown.md) @@ -66,7 +66,7 @@ Please check the supported operator list for your chosen runtime for further inf | RESIZE_NEAREST_NEIGHBOR | [Generic](#tflite-generic-constraints), [Specific](#tflite-resize_nearest_neighbor-constraints) | | RSQRT | [Generic](#tflite-generic-constraints), [Specific](#tflite-rsqrt-constraints) | | SHAPE | [Generic](#tflite-generic-constraints) | -| SLICE | [Generic](#tflite-generic-constraints) | +| SLICE | [Generic](#tflite-generic-constraints), [Specific](#tflite-slice-constraints) | | SOFTMAX | [Generic](#tflite-generic-constraints), [Specific](#tflite-softmax-constraints) | | SPLIT | [Generic](#tflite-generic-constraints), [Specific](#tflite-split-constraints) | | SPLIT_V | [Generic](#tflite-generic-constraints), [Specific](#tflite-split_v-constraints) | @@ -328,6 +328,12 @@ This is a list of constraints that the RSQRT operator must satisfy in order to b - IFM and OFM data types must match - IFM must be int8 +### TFLite SLICE Constraints + +This is a list of constraints that the SLICE operator must satisfy in order to be scheduled on the NPU. + +- Begin and Size Input tensors must be constant + ### TFLite SOFTMAX Constraints This is a list of constraints that the SOFTMAX operator must satisfy in order to be scheduled on the NPU. -- cgit v1.2.1