From c577f2c6a3b4ddb6ba87a882723c53a248afbeba Mon Sep 17 00:00:00 2001 From: telsoa01 Date: Fri, 31 Aug 2018 09:22:23 +0100 Subject: Release 18.08 --- src/armnn/backends/MakeWorkloadHelper.hpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/armnn/backends/MakeWorkloadHelper.hpp') diff --git a/src/armnn/backends/MakeWorkloadHelper.hpp b/src/armnn/backends/MakeWorkloadHelper.hpp index a1f9b0b0eb..64a7f8983b 100644 --- a/src/armnn/backends/MakeWorkloadHelper.hpp +++ b/src/armnn/backends/MakeWorkloadHelper.hpp @@ -9,7 +9,7 @@ namespace armnn namespace { -// Make a workload of the specified WorkloadType +// Make a workload of the specified WorkloadType. template struct MakeWorkloadForType { @@ -37,7 +37,8 @@ struct MakeWorkloadForType // Makes a workload for one the specified types based on the data type requirements of the tensorinfo. // Specify type void as the WorkloadType for unsupported DataType/WorkloadType combos. -template +template std::unique_ptr MakeWorkload(const QueueDescriptorType& descriptor, const WorkloadInfo& info, Args&&... args) { const DataType dataType = !info.m_InputTensorInfos.empty() ? @@ -49,6 +50,8 @@ std::unique_ptr MakeWorkload(const QueueDescriptorType& descriptor, c switch (dataType) { + case DataType::Float16: + return MakeWorkloadForType::Func(descriptor, info, std::forward(args)...); case DataType::Float32: return MakeWorkloadForType::Func(descriptor, info, std::forward(args)...); case DataType::QuantisedAsymm8: @@ -59,5 +62,17 @@ std::unique_ptr MakeWorkload(const QueueDescriptorType& descriptor, c } } +// Makes a workload for one the specified types based on the data type requirements of the tensorinfo. +// Calling this method is the equivalent of calling the three typed MakeWorkload method with . +// Specify type void as the WorkloadType for unsupported DataType/WorkloadType combos. +template +std::unique_ptr MakeWorkload(const QueueDescriptorType& descriptor, const WorkloadInfo& info, Args&&... args) +{ + return MakeWorkload(descriptor, info, + std::forward(args)...); +} + + } //namespace } //namespace armnn -- cgit v1.2.1