blob: d55c2f9ecd409699076cdef1abb856b6268f536c [file] [log] [blame]
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <type_traits>
// Set style to round to nearest
#define HALF_ROUND_STYLE 1
#define HALF_ROUND_TIES_TO_EVEN 1
#include "half/half.hpp"
namespace armnn
{
using Half = half_float::half; //import half float implementation
} //namespace armnn
namespace std
{
template<>
struct is_floating_point<armnn::Half>
: integral_constant< bool, true >
{};
template<>
struct is_floating_point<const armnn::Half>
: integral_constant< bool, true >
{};
template<>
struct is_floating_point<volatile armnn::Half>
: integral_constant< bool, true >
{};
} //namespace std