blob: c4b47a3609bf39dbed141669e1f496abd5ab04c6 [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa01c577f2c2018-08-31 09:22:23 +01004//
5
6#pragma once
7
8#include <type_traits>
9#include <half/half.hpp>
10
11namespace armnn
12{
13 using Half = half_float::half; //import half float implementation
14} //namespace armnn
15
16
17namespace std
18{
19
20template<>
21struct is_floating_point<armnn::Half>
22 : integral_constant< bool, true >
23{};
24
25template<>
26struct is_floating_point<const armnn::Half>
27 : integral_constant< bool, true >
28{};
29
30template<>
31struct is_floating_point<volatile armnn::Half>
32 : integral_constant< bool, true >
33{};
34
35} //namespace std