diff options
author | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2021-09-17 21:08:57 +0100 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2021-09-24 14:17:31 +0000 |
commit | f10b15a8946f39bdf3f60cebc59d2963069eedca (patch) | |
tree | 9cba39db69acad2bd5728cefbad578161e6ba63c /src/armnn/layers/GatherLayer.hpp | |
parent | 4fcc8632aaa64e683d98199659093d1aa99ffb08 (diff) | |
download | armnn-f10b15a8946f39bdf3f60cebc59d2963069eedca.tar.gz |
IVGCVSW-6382 Add Gather operator support to ONNX parser
* Add ParseGather to support Gather operator on ONNX
* Add Support of int64 converted to int32 for constant
* Add OnnxParserTestUtils
* Refactor ValidateTensorShapesFromInputs of GatherLayer
* Unit tests
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ie9dff640240e14a062fef38f7faf0ccc212de5f7
Diffstat (limited to 'src/armnn/layers/GatherLayer.hpp')
-rw-r--r-- | src/armnn/layers/GatherLayer.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/armnn/layers/GatherLayer.hpp b/src/armnn/layers/GatherLayer.hpp index 010af37b49..3bc8c69bc4 100644 --- a/src/armnn/layers/GatherLayer.hpp +++ b/src/armnn/layers/GatherLayer.hpp @@ -24,6 +24,11 @@ public: /// @param [in] graph The graph into which this layer is being cloned. GatherLayer* Clone(Graph& graph) const override; + /// Infers the output shapes from given input shapes and layer properties. + /// @param [in] inputShapes The input shapes layer has. + /// @return A vector to the inferred output shape. + std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override; + /// Check if the input tensor shape(s). /// will lead to a valid configuration of @ref GatherLayer. /// @param [in] shapeInferenceMethod Indicates if output shape shall be overwritten or just validate. |