IVGCVSW-2205 Reversed workaround for COMPMID-1813
authorMohamed Nour Abouelseoud <mohamednour.abouelseoud@arm.com>
Wed, 2 Jan 2019 14:32:24 +0000 (14:32 +0000)
committerMohamed Nour Abouelseoud <mohamednour.abouelseoud@arm.com>
Wed, 2 Jan 2019 14:32:24 +0000 (14:32 +0000)
Change-Id: Icf7ef88a2eaef80ec32cc718b0ca9d26e830ed07

src/backends/neon/workloads/NeonDepthwiseConvolutionWorkload.cpp

index 02c1785..6cad12c 100644 (file)
@@ -73,17 +73,6 @@ NeonDepthwiseConvolutionWorkload::NeonDepthwiseConvolutionWorkload(
         m_BiasTensor = std::make_unique<arm_compute::Tensor>();
         BuildArmComputeTensor(*m_BiasTensor, m_Data.m_Bias->GetTensorInfo(), m_Data.m_Parameters.m_DataLayout);
     }
-    else
-    {
-        // Workaround for COMPMID-1813
-        m_BiasTensor = std::make_unique<arm_compute::Tensor>();
-        TensorInfo biasTensorInfo({weightInfo.GetShape()[dataLayoutIndex.GetChannelsIndex()]},
-                                  weightInfo.GetDataType() == DataType::QuantisedAsymm8 ? DataType::Signed32 :
-                                                                                          weightInfo.GetDataType(),
-                                  weightInfo.GetQuantizationScale() *
-                                  info.m_InputTensorInfos[0].GetQuantizationScale());
-        BuildArmComputeTensor(*m_BiasTensor, biasTensorInfo, m_Data.m_Parameters.m_DataLayout);
-    }
 
     arm_compute::PadStrideInfo padStrideInfo(m_Data.m_Parameters.m_StrideX,
                                              m_Data.m_Parameters.m_StrideY,
@@ -134,10 +123,6 @@ NeonDepthwiseConvolutionWorkload::NeonDepthwiseConvolutionWorkload(
     {
         InitializeArmComputeTensorData(*m_BiasTensor, m_Data.m_Bias);
     }
-    else
-    {
-        InitialiseArmComputeTensorEmpty(*m_BiasTensor);
-    }
 
     m_pDepthwiseConvolutionLayer->prepare();
     FreeUnusedTensors();