ArmNN
 24.08
IAsyncExecutionCallback.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "Types.hpp"
9 
10 namespace armnn
11 {
12 
13 namespace experimental
14 {
15 
16 class IAsyncExecutionCallback;
17 using IAsyncExecutionCallbackPtr = std::shared_ptr<IAsyncExecutionCallback>;
18 
20 {
21 public:
23 
24  // Notify the AsyncExecutionCallback object of the armnn execution status
25  virtual void Notify(armnn::Status status, InferenceTimingPair timeTaken) = 0;
26 };
27 
28 } // experimental
29 
30 } // namespace armnn
armnn::experimental::IAsyncExecutionCallback::~IAsyncExecutionCallback
virtual ~IAsyncExecutionCallback()
Definition: IAsyncExecutionCallback.hpp:22
armnn::InferenceTimingPair
std::pair< HighResolutionClock, HighResolutionClock > InferenceTimingPair
Definition: Types.hpp:402
armnn::experimental::IAsyncExecutionCallbackPtr
std::shared_ptr< IAsyncExecutionCallback > IAsyncExecutionCallbackPtr
Definition: IAsyncExecutionCallback.hpp:17
armnn::Status
Status
Definition: Types.hpp:42
armnn::experimental::IAsyncExecutionCallback
Definition: IAsyncExecutionCallback.hpp:19
armnn::experimental::IAsyncExecutionCallback::Notify
virtual void Notify(armnn::Status status, InferenceTimingPair timeTaken)=0
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
Types.hpp