* Small refactor in unit tests using TensorHandleFactory to use reference instead of pointer
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I1a702941890034a45029c014c8b11e185f45a807
auto tensorHandleFactory = WorkloadFactoryHelper<FactoryType>::GetTensorHandleFactory(memoryManager);
- auto testResult = (*testFunction)(workloadFactory, memoryManager, &tensorHandleFactory, args...);
+ auto testResult = (*testFunction)(workloadFactory, memoryManager, tensorHandleFactory, args...);
CompareTestResultIfSupported(testName, testResult);
armnn::ProfilerManager::GetInstance().RegisterProfiler(nullptr);
RefWorkloadFactoryHelper::GetTensorHandleFactory(memoryManager);
auto testResult = (*testFunction)(
- workloadFactory, memoryManager, refWorkloadFactory, &tensorHandleFactory, &refTensorHandleFactory, args...);
+ workloadFactory, memoryManager, refWorkloadFactory, tensorHandleFactory, refTensorHandleFactory, args...);
CompareTestResultIfSupported(testName, testResult);
}
LayerTestResult<int32_t, 3> ArgMinMaxTestCommon(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr&,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
armnn::ArgMinMaxFunction argMinMaxFunction,
const armnn::TensorInfo inputTensorInfo,
const armnn::TensorInfo outputTensorInfo,
LayerTestResult<int32_t, 3> result(outputTensorInfo);
result.outputExpected = MakeTensor<int32_t, 3>(outputTensorInfo, outputData);
- std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory->CreateTensorHandle(inputTensorInfo);
- std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory->CreateTensorHandle(outputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
armnn::ArgMinMaxQueueDescriptor descriptor;
descriptor.m_Parameters.m_Function = argMinMaxFunction;
LayerTestResult<int32_t, 3> ArgMaxSimpleTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
const armnn::TensorShape inputShape{ 1, 1, 1, 5 };
const armnn::TensorShape outputShape{ 1, 1, 1 };
LayerTestResult<int32_t, 3> ArgMinSimpleTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
const armnn::TensorShape inputShape{ 1, 1, 1, 5 };
const armnn::TensorShape outputShape{ 1, 1, 1 };
LayerTestResult<int32_t, 3> ArgMinChannelTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
const armnn::TensorShape inputShape{ 1, 3, 2, 4};
const armnn::TensorShape outputShape{ 1, 2, 4 };
LayerTestResult<int32_t, 3> ArgMaxChannelTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
const armnn::TensorShape inputShape{ 1, 3, 2, 4};
const armnn::TensorShape outputShape{ 1, 2, 4 };
LayerTestResult<int32_t, 3> ArgMaxHeightTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
const armnn::TensorShape inputShape{ 1, 3, 2, 4};
const armnn::TensorShape outputShape{ 1, 3, 4 };
LayerTestResult<int32_t, 3> ArgMinWidthTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
const armnn::TensorShape inputShape{ 1, 3, 2, 4};
const armnn::TensorShape outputShape{ 1, 3, 2 };
ArgMaxSimpleTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxSimpleTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxSimpleTest<armnn::DataType::QAsymmS8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxSimpleTest<armnn::DataType::QAsymmU8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxSimpleTest<armnn::DataType::QSymmS16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxSimpleTest<armnn::DataType::Signed32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinSimpleTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinSimpleTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinSimpleTest<armnn::DataType::QAsymmS8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinSimpleTest<armnn::DataType::QAsymmU8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinSimpleTest<armnn::DataType::QSymmS16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinSimpleTest<armnn::DataType::Signed32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinChannelTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinChannelTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinChannelTest<armnn::DataType::QAsymmS8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinChannelTest<armnn::DataType::QAsymmU8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinChannelTest<armnn::DataType::QSymmS16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinChannelTest<armnn::DataType::Signed32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxChannelTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxChannelTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxChannelTest<armnn::DataType::QAsymmS8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxChannelTest<armnn::DataType::QAsymmU8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxChannelTest<armnn::DataType::QSymmS16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxChannelTest<armnn::DataType::Signed32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxHeightTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxHeightTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxHeightTest<armnn::DataType::Signed32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxHeightTest<armnn::DataType::QAsymmS8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMaxHeightTest<armnn::DataType::QAsymmU8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinWidthTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinWidthTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinWidthTest<armnn::DataType::Signed32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinWidthTest<armnn::DataType::QAsymmS8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<int32_t, 3>
ArgMinWidthTest<armnn::DataType::QAsymmU8>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult<int32_t, 3> ArgMaxSimpleTest(armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult<int32_t, 3> ArgMinSimpleTest(armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult<int32_t, 3> ArgMinChannelTest(armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult<int32_t, 3> ArgMaxChannelTest(armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult<int32_t, 3> ArgMaxHeightTest(armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult<int32_t, 3> ArgMinWidthTest(armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
\ No newline at end of file
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
\ No newline at end of file
LayerTestResult<float, 2> FakeQuantizationTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
IgnoreUnused(memoryManager);
constexpr unsigned int width = 2;
LayerTestResult<float, 2> ret(tensorInfo);
- std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory->CreateTensorHandle(tensorInfo);
- std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory->CreateTensorHandle(tensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(tensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(tensorInfo);
armnn::FakeQuantizationQueueDescriptor data;
armnn::WorkloadInfo info;
LayerTestResult<float, 2> FakeQuantizationTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<T, 4> SimpleFillTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
IgnoreUnused(memoryManager);
armnn::TensorInfo inputTensorInfo({4}, armnn::DataType::Signed32);
1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f },
outputTensorInfo));
- std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory->CreateTensorHandle(inputTensorInfo);
- std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory->CreateTensorHandle(outputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
armnn::FillQueueDescriptor data;
data.m_Parameters.m_Value = 1.0f;
SimpleFillTest<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float16>, 4>
SimpleFillTest<armnn::DataType::Float16>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
template LayerTestResult<armnn::ResolveType<armnn::DataType::Signed32>, 4>
SimpleFillTest<armnn::DataType::Signed32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
\ No newline at end of file
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
\ No newline at end of file
LayerTestResult<T, 4> SimpleFillTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<T, n> SimpleSoftmaxBaseTestImpl(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
const armnn::TensorShape& inputShape,
const std::vector<float>& outputData,
// Each row is independently softmax'd.
auto input = MakeTensor<T, n>(inputTensorInfo, armnnUtils::QuantizedVector<T>(inputData, qScale, qOffset));
- std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory->CreateTensorHandle(inputTensorInfo);
- std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory->CreateTensorHandle(outputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
armnn::SoftmaxQueueDescriptor data;
data.m_Parameters.m_Beta = beta;
LayerTestResult<T, 2> SimpleSoftmaxTestImpl(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
using std::exp;
LayerTestResult<T, 2> SimpleSoftmaxTestImpl(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
int axis)
{
LayerTestResult<T, 3> Simple3dSoftmaxTestImpl(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
const armnn::TensorShape& inputShape,
const std::vector<float>& outputData,
LayerTestResult<T, 4> Simple4dSoftmaxTestImpl(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
const armnn::TensorShape& inputShape,
const std::vector<float>& outputData,
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
armnn::IWorkloadFactory& refWorkloadFactory,
- const armnn::ITensorHandleFactory* tensorHandleFactory,
- const armnn::ITensorHandleFactory* refTensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
+ const armnn::ITensorHandleFactory& refTensorHandleFactory,
float beta)
{
const int batchSize = 20;
LayerTestResult<T, 2> ret(outputTensorInfo);
auto input = MakeRandomTensor<T, 2>(inputTensorInfo, 0xF00D, 0.0f, 1.0f);
- std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory->CreateTensorHandle(inputTensorInfo);
- std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory->CreateTensorHandle(outputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
armnn::SoftmaxQueueDescriptor data;
data.m_Parameters.m_Beta = beta;
AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());
std::unique_ptr<armnn::ITensorHandle> outputHandleRef =
- refTensorHandleFactory->CreateTensorHandle(outputTensorInfo);
+ refTensorHandleFactory.CreateTensorHandle(outputTensorInfo);
std::unique_ptr<armnn::ITensorHandle> inputHandleRef =
- refTensorHandleFactory->CreateTensorHandle(inputTensorInfo);
+ refTensorHandleFactory.CreateTensorHandle(inputTensorInfo);
armnn::SoftmaxQueueDescriptor refData = data;
armnn::WorkloadInfo refInfo = info;
LayerTestResult<float,2> SimpleSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
return SimpleSoftmaxTestImpl<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, beta);
LayerTestResult<float,2> SimpleAxisSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
int axis)
{
LayerTestResult<float,3> Simple3dSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple3dSoftmaxOutputData data;
LayerTestResult<float,3> Simple3dAxisSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
int axis)
{
LayerTestResult<float,4> Simple4dSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple4dSoftmaxData data;
LayerTestResult<float,4> Simple4dAxisSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
int axis)
{
LayerTestResult<uint8_t,2> SimpleSoftmaxUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
return SimpleSoftmaxTestImpl<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, tensorHandleFactory, beta);
LayerTestResult<uint8_t,3> Simple3dSoftmaxUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple3dSoftmaxOutputData data;
LayerTestResult<uint8_t,4> Simple4dSoftmaxUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple4dSoftmaxData data;
LayerTestResult<armnn::Half,2> SimpleSoftmaxFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
return SimpleSoftmaxTestImpl<armnn::DataType::Float16>(workloadFactory, memoryManager, tensorHandleFactory, beta);
LayerTestResult<armnn::Half,3> Simple3dSoftmaxFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple3dSoftmaxOutputData data;
LayerTestResult<armnn::Half,4> Simple4dSoftmaxFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple4dSoftmaxData data;
LayerTestResult<int16_t,2> SimpleSoftmaxUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
return SimpleSoftmaxTestImpl<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, beta);
LayerTestResult<int16_t,3> Simple3dSoftmaxUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple3dSoftmaxOutputData data;
LayerTestResult<int16_t,4> Simple4dSoftmaxUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta)
{
Simple4dSoftmaxData data;
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
armnn::IWorkloadFactory& refWorkloadFactory,
- const armnn::ITensorHandleFactory* tensorHandleFactory,
- const armnn::ITensorHandleFactory* refTensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
+ const armnn::ITensorHandleFactory& refTensorHandleFactory,
float beta)
{
return CompareSoftmaxTestImpl<armnn::DataType::Float32>(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
armnn::IWorkloadFactory& refWorkloadFactory,
- const armnn::ITensorHandleFactory* tensorHandleFactory,
- const armnn::ITensorHandleFactory* refTensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
+ const armnn::ITensorHandleFactory& refTensorHandleFactory,
float beta)
{
return CompareSoftmaxTestImpl<armnn::DataType::QAsymmU8>(
LayerTestResult<float, 2> SimpleSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<float, 2> SimpleAxisSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
int axis);
LayerTestResult<float, 3> Simple3dSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<float, 3> Simple3dAxisSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
int axis);
LayerTestResult<float, 4> Simple4dSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<float, 4> Simple4dAxisSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta,
int axis);
LayerTestResult<uint8_t, 2> SimpleSoftmaxUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<uint8_t,3> Simple3dSoftmaxUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<uint8_t,4> Simple4dSoftmaxUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<armnn::Half,2> SimpleSoftmaxFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<armnn::Half,3> Simple3dSoftmaxFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<armnn::Half,4> Simple4dSoftmaxFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<int16_t,2> SimpleSoftmaxUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<int16_t,3> Simple3dSoftmaxUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<int16_t,4> Simple4dSoftmaxUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
float beta);
LayerTestResult<float, 2> CompareSoftmaxTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
armnn::IWorkloadFactory& refWorkloadFactory,
- const armnn::ITensorHandleFactory* tensorHandleFactory,
- const armnn::ITensorHandleFactory* refTensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
+ const armnn::ITensorHandleFactory& refTensorHandleFactory,
float beta);
LayerTestResult<uint8_t, 2> CompareSoftmaxUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
armnn::IWorkloadFactory& refWorkloadFactory,
- const armnn::ITensorHandleFactory* tensorHandleFactory,
- const armnn::ITensorHandleFactory* refTensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
+ const armnn::ITensorHandleFactory& refTensorHandleFactory,
float beta);
LayerTestResult<T, 4> SpaceToBatchNdTestImpl(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
armnn::TensorInfo& inputTensorInfo,
armnn::TensorInfo& outputTensorInfo,
std::vector<float>& inputData,
ret.outputExpected = MakeTensor<T, 4>(outputTensorInfo,
armnnUtils::QuantizedVector<T>(outputExpectedData, qScale, qOffset));
- std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory->CreateTensorHandle(inputTensorInfo);
- std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory->CreateTensorHandle(outputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
+ std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
armnn::WorkloadInfo info;
AddInputToWorkload(descriptor, info, inputTensorInfo, inputHandle.get());
LayerTestResult<T, 4> SpaceToBatchNdSimpleTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
armnn::DataLayout dataLayout = armnn::DataLayout::NCHW)
{
armnn::TensorInfo inputTensorInfo;
LayerTestResult<T, 4> SpaceToBatchNdMultiChannelsTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
armnn::DataLayout dataLayout = armnn::DataLayout::NCHW)
{
armnn::TensorInfo inputTensorInfo;
LayerTestResult<T, 4> SpaceToBatchNdMultiBlockTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
armnn::DataLayout dataLayout = armnn::DataLayout::NCHW)
{
armnn::TensorInfo inputTensorInfo;
LayerTestResult<T, 4> SpaceToBatchNdPaddingTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory,
+ const armnn::ITensorHandleFactory& tensorHandleFactory,
armnn::DataLayout dataLayout = armnn::DataLayout::NCHW)
{
armnn::TensorInfo inputTensorInfo;
LayerTestResult<T, 4> SpaceToBatchNdSimpleNhwcTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleTest<ArmnnType>(workloadFactory,
memoryManager,
LayerTestResult<T, 4> SpaceToBatchNdMultiChannelsNhwcTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsTest<ArmnnType>(workloadFactory,
memoryManager,
LayerTestResult<T, 4> SpaceToBatchNdMultiBlockNhwcTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockTest<ArmnnType>(workloadFactory,
memoryManager,
LayerTestResult<T, 4> SpaceToBatchNdPaddingNhwcTest(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingTest<ArmnnType>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdSimpleFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdMultiChannelsFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdMultiBlockFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdPaddingFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdSimpleFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiChannelsFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiBlockFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdPaddingFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdSimpleUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiChannelsUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiBlockUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdPaddingUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdSimpleNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleNhwcTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdMultiChannelsNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsNhwcTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdMultiBlockNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockNhwcTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdPaddingNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingNhwcTest<armnn::DataType::Float32>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdSimpleNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleNhwcTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiChannelsNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsNhwcTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiBlockNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockNhwcTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<armnn::Half, 4> SpaceToBatchNdPaddingNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingNhwcTest<armnn::DataType::Float16>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdSimpleNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleNhwcTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiChannelsNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsNhwcTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiBlockNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockNhwcTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<uint8_t, 4> SpaceToBatchNdPaddingNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingNhwcTest<armnn::DataType::QAsymmU8>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdSimpleUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiChannelsUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiBlockUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdPaddingUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdSimpleNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdSimpleNhwcTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiChannelsNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiChannelsNhwcTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiBlockNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdMultiBlockNhwcTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<int16_t, 4> SpaceToBatchNdPaddingNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory)
+ const armnn::ITensorHandleFactory& tensorHandleFactory)
{
return SpaceToBatchNdPaddingNhwcTest<armnn::DataType::QSymmS16>(workloadFactory,
memoryManager,
LayerTestResult<float, 4> SpaceToBatchNdSimpleFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<float, 4> SpaceToBatchNdMultiChannelsFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<float, 4> SpaceToBatchNdMultiBlockFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<float, 4> SpaceToBatchNdPaddingFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdSimpleFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiChannelsFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiBlockFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdPaddingFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdSimpleUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiChannelsUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiBlockUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdPaddingUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<float, 4> SpaceToBatchNdSimpleNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<float, 4> SpaceToBatchNdMultiChannelsNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<float, 4> SpaceToBatchNdMultiBlockNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<float, 4> SpaceToBatchNdPaddingNhwcFloat32Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdSimpleNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiChannelsNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdMultiBlockNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<armnn::Half, 4> SpaceToBatchNdPaddingNhwcFloat16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdSimpleNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiChannelsNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdMultiBlockNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<uint8_t, 4> SpaceToBatchNdPaddingNhwcUint8Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdSimpleUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiChannelsUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiBlockUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdPaddingUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdSimpleNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiChannelsNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdMultiBlockNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);
LayerTestResult<int16_t, 4> SpaceToBatchNdPaddingNhwcUint16Test(
armnn::IWorkloadFactory& workloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager,
- armnn::ITensorHandleFactory* tensorHandleFactory);
+ const armnn::ITensorHandleFactory& tensorHandleFactory);