20.11
NeonBackendModelContext.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
#pragma once
6
7
#include <
armnn/backends/IBackendContext.hpp
>
8
9
namespace
armnn
10
{
11
12
/// The NeonBackendModelContext is used to pass in Neon specific backend ModelOptions. The supported backend
13
/// ModelOptions are:
14
/// - "FastMathEnabled"\n
15
/// Using the fast_math flag can lead to performance improvements in fp32 and fp16 layers but may result in\n
16
/// results with reduced or different precision. The fast_math flag will not have any effect on int8 performance.
17
class
NeonBackendModelContext
:
public
IBackendModelContext
18
{
19
public
:
20
NeonBackendModelContext
(
const
ModelOptions
& modelOptions);
21
22
bool
IsFastMathEnabled
()
const
;
23
24
private
:
25
bool
m_IsFastMathEnabled;
26
};
27
28
}
// namespace armnn
IBackendContext.hpp
armnn::ModelOptions
std::vector< BackendOptions > ModelOptions
Definition:
BackendOptions.hpp:17
armnn::NeonBackendModelContext::IsFastMathEnabled
bool IsFastMathEnabled() const
Definition:
NeonBackendModelContext.cpp:40
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
armnn::NeonBackendModelContext
The NeonBackendModelContext is used to pass in Neon specific backend ModelOptions.
Definition:
NeonBackendModelContext.hpp:17
armnn::NeonBackendModelContext::NeonBackendModelContext
NeonBackendModelContext(const ModelOptions &modelOptions)
Definition:
NeonBackendModelContext.cpp:25
armnn::IBackendModelContext
Definition:
IBackendContext.hpp:33
src
backends
neon
NeonBackendModelContext.hpp
Generated on Wed Nov 25 2020 09:59:13 for ArmNN by
1.8.13