diff options
author | Tai Ly <tai.ly@arm.com> | 2024-01-16 19:52:58 +0000 |
---|---|---|
committer | Tai Ly <tai.ly@arm.com> | 2024-01-18 23:46:37 +0000 |
commit | 4d04238050a50081f35d7e615b590d00e702f501 (patch) | |
tree | 045fbbc352d9b988ca501c3557adf4124879111f /include/operator.def | |
parent | 20f6941b21f84cd5f0152d42f343b0992dd5a6e5 (diff) | |
download | tosa_mlir_translator-4d04238050a50081f35d7e615b590d00e702f501.tar.gz |
[tosa_mlir_translator] Add Shape Ops Support
- Add serialization/deserialization of tosa shape ops.
- Changed TileOp's multiples from attribute to shape input.
- Change 'shape' attribute of RESHAPE to an input
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: I4329e621fd7637b1a3491c195fbda77d2a0ad23a
Diffstat (limited to 'include/operator.def')
-rw-r--r-- | include/operator.def | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/operator.def b/include/operator.def index 6198c0e..5b0cc7f 100644 --- a/include/operator.def +++ b/include/operator.def @@ -1,5 +1,5 @@ -// Copyright (c) 2020-2023, ARM Limited. +// Copyright (c) 2020-2024, ARM Limited. // // Licensed under the Apache License, Version 2.0 with LLVM Exceptions // (the "License"); you may not use this file except in compliance with @@ -119,3 +119,11 @@ DEF_OPERATOR(Custom) /* control flow operators */ DEF_OPERATOR(If) DEF_OPERATOR(While) + +/* shape operators */ +DEF_OPERATOR(ConstShape) +DEF_OPERATOR(ConcatShape) +DEF_OPERATOR(AddShape) +DEF_OPERATOR(SubShape) +DEF_OPERATOR(MulShape) +DEF_OPERATOR(DivShape) |