diff options
author | Teresa Charlin <teresa.charlinreyes@arm.com> | 2022-08-30 14:27:10 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2022-09-06 11:30:05 +0100 |
commit | d93603325ac3f2911ee24f8a98a5a79caf29c0ca (patch) | |
tree | 45c6d685659148ea874a71d073c5ca666e333dfa /src/backends | |
parent | 06875f4eb0ee3ece2afbeac9d66d45d5f139db51 (diff) | |
download | armnn-d93603325ac3f2911ee24f8a98a5a79caf29c0ca.tar.gz |
IVGCVSW-7006 Remove deprecated code due to be removed in 22.08
* AddConv and AddDWConv with weights and bias
* ResizeBilinearDescriptor
* b,blacklist option in accuracy tool
!android-nn-driver:8172
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Ibbc04fd18be7f938b11590bf67cd7af103cb4d99
Diffstat (limited to 'src/backends')
-rw-r--r-- | src/backends/backendsCommon/WorkloadData.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/backends/backendsCommon/WorkloadData.cpp b/src/backends/backendsCommon/WorkloadData.cpp index f4afbd9a84..753fe06edb 100644 --- a/src/backends/backendsCommon/WorkloadData.cpp +++ b/src/backends/backendsCommon/WorkloadData.cpp @@ -1596,54 +1596,6 @@ void Pooling3dQueueDescriptor::Validate(const WorkloadInfo& workloadInfo) const ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output"); } - -void ResizeBilinearQueueDescriptor::Validate(const WorkloadInfo& workloadInfo) const -{ - const std::string descriptorName{"ResizeBilinearQueueDescriptor"}; - - ValidateNumInputs(workloadInfo, descriptorName, 1); - ValidateNumOutputs(workloadInfo, descriptorName, 1); - - const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0]; - const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0]; - - ValidateTensorNumDimensions(inputTensorInfo, descriptorName, 4, "input"); - ValidateTensorNumDimensions(outputTensorInfo, descriptorName, 4, "output"); - - std::vector<DataType> supportedTypes = - { - DataType::BFloat16, - DataType::Float16, - DataType::Float32, - DataType::QAsymmS8, - DataType::QAsymmU8, - DataType::QSymmS16 - }; - - ValidateDataTypes(inputTensorInfo, supportedTypes, descriptorName); - ValidateTensorDataTypesMatch(inputTensorInfo, outputTensorInfo, descriptorName, "input", "output"); - - // ResizeBilinear only changes width and height: batch and channel count must match. - const unsigned int inputBatchSize = inputTensorInfo.GetShape()[0]; - const unsigned int outputBatchSize = outputTensorInfo.GetShape()[0]; - if (inputBatchSize != outputBatchSize) - { - throw InvalidArgumentException( - fmt::format("{}: Input batch size ({}) does not match output batch size ({})", - descriptorName, inputBatchSize, outputBatchSize)); - } - - DataLayoutIndexed dimensionIndices(m_Parameters.m_DataLayout); - const unsigned int inputChannelCount = inputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()]; - const unsigned int outputChannelCount = outputTensorInfo.GetShape()[dimensionIndices.GetChannelsIndex()]; - if (inputChannelCount != outputChannelCount) - { - throw InvalidArgumentException( - fmt::format("{}: Input channel count ({}) does not match output channel count ({})", - descriptorName, inputChannelCount, outputChannelCount)); - } -} - void ResizeQueueDescriptor::Validate(const WorkloadInfo& workloadInfo) const { const std::string descriptorName{"ResizeQueueDescriptor"}; |