diff options
author | jimfly01 <jim.flynn@arm.com> | 2018-12-04 10:09:52 +0000 |
---|---|---|
committer | jimfly01 <jim.flynn@arm.com> | 2018-12-05 12:15:48 +0000 |
commit | f6ba747c0802d87ba30aecd598f0603f9bd18576 (patch) | |
tree | df892f37ed1edc13e9ed05d9ac72f67a1fd622a3 /src/backends/reference | |
parent | 2135015779092e259ad5d5df185eda0c34b56359 (diff) | |
download | armnn-f6ba747c0802d87ba30aecd598f0603f9bd18576.tar.gz |
IVGCVSW-2296 Add ParsePad method to TfParser
* Also added unit test armnnTfParser/test/Pad.cpp
* Added missing 'Pad' entry to GetLayerTypeAsCString(LayerType)
* Fixed the RefLayerSupport.IsPadSupported, now it returns true
* Small fix in Optimize. Only resolve stringstream to string once
Change-Id: Ieaa1886858a48cd761ac5f30454f73e44bdd4b8f
Diffstat (limited to 'src/backends/reference')
-rw-r--r-- | src/backends/reference/RefLayerSupport.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index fffea587a0..3b49fa0e51 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -400,11 +400,12 @@ bool RefLayerSupport::IsPadSupported(const TensorInfo& input, const PadDescriptor& descriptor, Optional<std::string&> reasonIfUnsupported) const { - ignore_unused(input); ignore_unused(output); ignore_unused(descriptor); - ignore_unused(reasonIfUnsupported); - return false; + return IsSupportedForDataTypeRef(reasonIfUnsupported, + input.GetDataType(), + &TrueFunc<>, + &TrueFunc<>); } bool RefLayerSupport::IsPermuteSupported(const TensorInfo& input, |