diff options
author | Tianle Cheng <tianle.cheng@arm.com> | 2024-02-23 17:56:54 +0000 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2024-02-28 16:12:34 +0000 |
commit | 282881877522d3e94752dfc0839de9bfa0aa5a81 (patch) | |
tree | 9cd11c96eb4c179e76f2e586d5a9d9b416dd85a0 /include/armnn/Types.hpp | |
parent | 2883a86c5a167aea3c736529bff5921ab6cbc99c (diff) | |
download | armnn-282881877522d3e94752dfc0839de9bfa0aa5a81.tar.gz |
IVGCVSW-8229 & IVGCVSW-8237 ScatterNd: Front end and reference implementation
(scatter_nd, scatter_nd_add, and scatter_nd_update, scatter_nd_sub, scatter_nd_min, scatter_nd_max, scatter_nd_mul)
* Front end support for ScatterNd added.
* Reference implementation for ScatterNd added.
* Unit tests added.
Signed-off-by: Tianle Cheng <tianle.cheng@arm.com>
Change-Id: I30da9056d9b03ca9b5fb8d09987341128badbcf4
Diffstat (limited to 'include/armnn/Types.hpp')
-rw-r--r-- | include/armnn/Types.hpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp index d87e7f7147..bbe1ecccbd 100644 --- a/include/armnn/Types.hpp +++ b/include/armnn/Types.hpp @@ -1,5 +1,5 @@ // -// Copyright © 2018-2023 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2018-2024 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once @@ -482,8 +482,8 @@ using InferenceTimingPair = std::pair<HighResolutionClock, HighResolutionClock>; X(ReverseV2) \ X(Tile) \ X(Fused) \ - X(BroadcastTo) \ - + X(BroadcastTo) \ + X(ScatterNd) \ // New layers should be added at last position to minimize instability. /// When adding a new layer, adapt also the LastLayer enum value in the @@ -494,7 +494,17 @@ enum class LayerType LIST_OF_LAYER_TYPE #undef X FirstLayer = Activation, - LastLayer = BroadcastTo + LastLayer = ScatterNd +}; + +enum class ScatterNdFunction +{ + Update = 0, + Add = 1, + Sub = 2, + Max = 3, + Min = 4, + Mul = 5 }; const char* GetLayerTypeAsCString(LayerType type); |