blob: 430ae45a6fa0358c3df126c73f839a3532448682 [file] [log] [blame]
//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/backends/IBackendContext.hpp>
namespace armnn
{
/// The NeonBackendModelContext is used to pass in Neon specific backend ModelOptions. The supported backend
/// ModelOptions are:
/// - "FastMathEnabled"\n
/// Using the fast_math flag can lead to performance improvements in fp32 and fp16 layers but may result in\n
/// results with reduced or different precision. The fast_math flag will not have any effect on int8 performance.
class NeonBackendModelContext : public IBackendModelContext
{
public:
NeonBackendModelContext(const ModelOptions& modelOptions);
bool IsFastMathEnabled() const;
private:
bool m_IsFastMathEnabled;
};
} // namespace armnn