Home
last modified time | relevance | path

Searched refs:__half (Results 1 – 6 of 6) sorted by relevance

/external/eigen/test/
Dhalf_float.cpp23 using Eigen::half_impl::__half; in test_conversion()
40 float val1 = float(half(__half(0x3c00))); in test_conversion()
41 float val2 = float(half(__half(0x3c01))); in test_conversion()
42 float val3 = float(half(__half(0x3c02))); in test_conversion()
58 VERIFY_IS_EQUAL(float(half(__half(0x0000))), 0.0f); in test_conversion()
59 VERIFY_IS_EQUAL(float(half(__half(0x3c00))), 1.0f); in test_conversion()
62 VERIFY_IS_APPROX(float(half(__half(0x8001))), -5.96046e-08f); in test_conversion()
63 VERIFY_IS_APPROX(float(half(__half(0x0001))), 5.96046e-08f); in test_conversion()
64 VERIFY_IS_APPROX(float(half(__half(0x0002))), 1.19209e-07f); in test_conversion()
69 VERIFY((numext::isinf)(float(half(__half(0xfc00))))); in test_conversion()
[all …]
/external/eigen/Eigen/src/Core/arch/CUDA/
DHalf.h56 struct __half { struct
57 EIGEN_DEVICE_FUNC __half() {} in __half() function
58 explicit EIGEN_DEVICE_FUNC __half(unsigned short raw) : x(raw) {} in __half() argument
64 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half raw_uint16_to_half(unsigned short x); argument
65 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half float_to_half_rtne(float ff);
66 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half h);
68 struct half_base : public __half {
70 EIGEN_DEVICE_FUNC half_base(const half_base& h) : __half(h) {} in half_base()
71 EIGEN_DEVICE_FUNC half_base(const __half& h) : __half(h) {} in half_base()
79 typedef half_impl::__half __half; typedef
[all …]
DPacketMathHalf.h109 __half a1 = __low2half(kernel.packet[0]);
110 __half a2 = __high2half(kernel.packet[0]);
111 __half b1 = __low2half(kernel.packet[1]);
112 __half b2 = __high2half(kernel.packet[1]);
211 __half r1 = a1 < b1 ? __low2half(a) : __low2half(b);
212 __half r2 = a2 < b2 ? __high2half(a) : __high2half(b);
221 __half r1 = a1 > b1 ? __low2half(a) : __low2half(b);
222 __half r2 = a2 > b2 ? __high2half(a) : __high2half(b);
238 __half first = __low2half(a);
239 __half second = __high2half(a);
[all …]
/external/FP16/bench/
Dieee-element.cc222 const Eigen::half_impl::__half fp16 = in Eigen_float_to_half_rtne()
/external/tensorflow/tensorflow/core/kernels/
Dfused_batch_norm_op.cu.cc182 using IT = __half;
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_blas.cc2634 reinterpret_cast<const __half *>(GpuMemory(a) + batch * stride_a); in DoBlasInternalImpl()
2636 reinterpret_cast<const __half *>(GpuMemory(b) + batch * stride_b); in DoBlasInternalImpl()
2638 reinterpret_cast<__half *>(GpuMemoryMutable(c) + batch * stride_c); in DoBlasInternalImpl()