XeTLA v0.3.6
IntelĀ® Xe Templates for Linear Algebra - API Definition Document
 
Loading...
Searching...
No Matches
explicit_conv.hpp File Reference

C++ API. More...

Include dependency graph for explicit_conv.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gpu
 
namespace  gpu::xetla
 

Functions

template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t<!(is_internal_type< T_dst >::value) &&!(is_internal_type< T_src >::value), xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src)
 xetla explicit data conversion for standard data types(integer,float,half)
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, bf16 >::value &&std::is_same< T_src, float >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src)
 xetla explicit data conversion, fp32->bf16.
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, float >::value &&std::is_same< T_src, bf16 >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src)
 xetla explicit data conversion, bf16->fp32.
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, tf32 >::value &&std::is_same< T_src, float >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src)
 xetla explicit data conversion, fp32->tf32.
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, float >::value &&std::is_same< T_src, tf32 >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src)
 xetla explicit data conversion, tf32->fp32.
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, fp16 >::value &&std::is_same< T_src, int32_t >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src, float scaling_value)
 xetpp explicit data conversion with scaling, int32->fp16.
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, int8_t >::value &&std::is_same< T_src, int32_t >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src, float scaling_value)
 xetpp explicit data conversion with re-quantization, int32->int8.
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, int8_t >::value &&std::is_same< T_src, float >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src, float scaling_value)
 xetpp explicit data conversion with scaling and quantization, float32->int8.
 
template<typename T_dst , typename T_src , int N>
__XETLA_API std::enable_if_t< std::is_same< T_dst, T_src >::value &&is_internal_type< T_src >::value, xetla_vector< T_dst, N > > gpu::xetla::xetla_cvt (xetla_vector< T_src, N > src)
 xetla explicit data conversion, same type.
 

Detailed Description

C++ API.