IVGCVSW-3635 Remove temporary check from RefLayerSupport::IsTransposeConvolution2dSup...
authorAron Virginas-Tar <Aron.Virginas-Tar@arm.com>
Tue, 13 Aug 2019 16:41:01 +0000 (17:41 +0100)
committerAron Virginas-Tar <Aron.Virginas-Tar@arm.com>
Tue, 13 Aug 2019 16:41:01 +0000 (17:41 +0100)
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com>
Change-Id: I85a9563e2d12a5eb9dbcac1b70563a303905b67b

src/backends/reference/RefLayerSupport.cpp

index b105bcb..2648f45 100644 (file)
@@ -1612,24 +1612,6 @@ bool RefLayerSupport::IsTransposeConvolution2dSupported(const TensorInfo& input,
                                       "Reference TransposeConvolution2d: biases is not a supported type.");
     }
 
-    // NOTE: Temporary restriction; should be removed as soon as support for channel
-    // multiplier different from 1 (input channels != output channels) has been added
-    struct ChannelsAreEqual : public Rule
-    {
-        ChannelsAreEqual(const TensorInfo& input,
-                         const TensorInfo& output,
-                         const TransposeConvolution2dDescriptor& descriptor)
-        {
-            armnnUtils::DataLayoutIndexed dataLayoutIndexed(descriptor.m_DataLayout);
-            const unsigned int channelsIndex = dataLayoutIndexed.GetChannelsIndex();
-
-            m_Res = (input.GetShape()[channelsIndex] == output.GetShape()[channelsIndex]);
-        }
-    };
-
-    supported &= CheckSupportRule(ChannelsAreEqual(input, output, descriptor), reasonIfUnsupported,
-                                  "Reference TransposeConvolution2d: inputChannels != outputChannels");
-
     return supported;
 }