Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

48 lines
1.2 KiB
C++

//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/Types.hpp>
namespace armnn
{
namespace experimental
{
struct WorkingMemDescriptor;
} // end experimental namespace
using namespace armnn::experimental;
/// Workload interface to enqueue a layer computation.
class IWorkload {
public:
virtual ~IWorkload() {}
virtual void PostAllocationConfigure() = 0;
virtual void Execute() const = 0;
virtual void ExecuteAsync(WorkingMemDescriptor& desc) = 0;
virtual profiling::ProfilingGuid GetGuid() const = 0;
// SupportsTensorHandleReplacement signals that a given workload is capable of
// replacing any of its I/O tensors via ReplaceInput/OutputTensorHandle
virtual bool SupportsTensorHandleReplacement() const = 0;
// Replace input tensor handle with the given TensorHandle
virtual void ReplaceInputTensorHandle(ITensorHandle* /*input*/, unsigned int /*slot*/) = 0;
// Replace output tensor handle with the given TensorHandle
virtual void ReplaceOutputTensorHandle(ITensorHandle* /*output*/, unsigned int /*slot*/) = 0;
virtual void RegisterDebugCallback(const DebugCallbackFunction& /*func*/) {}
};
} //namespace armnn