diff options
author | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2021-07-28 17:33:28 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2021-08-10 16:49:30 +0000 |
commit | e5339e7013cf24e5a34509fb0a60377e5f8a244e (patch) | |
tree | c43607bfa497d3694f92d3d080a29b338f93905a /src/backends/reference/RefLayerSupport.hpp | |
parent | c1c872f12797ef6fe52c4589113e7efc353e56eb (diff) | |
download | armnn-e5339e7013cf24e5a34509fb0a60377e5f8a244e.tar.gz |
MLCE-530 Add support for UnidirectionalSequenceLstm to RefWorkloadexperimental/daves_custom_allocator_dmabuf
* Add implementation of IsUnidirectionalSequenceLstmSupported to RefLayerSupport
* Add RefUnidirectionalSequenceLstmWorkload
* Refactor Lstm to be able to use for Lstm and SequenceLstm
* Unit tests
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ibc066d213213a11b955dfefbe518de643298ba0c
Diffstat (limited to 'src/backends/reference/RefLayerSupport.hpp')
-rw-r--r-- | src/backends/reference/RefLayerSupport.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/backends/reference/RefLayerSupport.hpp b/src/backends/reference/RefLayerSupport.hpp index c060f79b5a..a1b4dc7f47 100644 --- a/src/backends/reference/RefLayerSupport.hpp +++ b/src/backends/reference/RefLayerSupport.hpp @@ -370,6 +370,17 @@ public: const TensorInfo& output, const TransposeDescriptor& descriptor, Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; + + bool IsUnidirectionalSequenceLstmSupported( + const TensorInfo& input, + const TensorInfo& outputStateIn, + const TensorInfo& cellStateIn, + const TensorInfo& output, + const Optional<TensorInfo>& hiddenStateOutput, + const Optional<TensorInfo>& cellStateOutput, + const UnidirectionalSequenceLstmDescriptor& descriptor, + const LstmInputParamsInfo& paramsInfo, + Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; }; } // namespace armnn |