Dragon - C++ API
A Computation Graph Virtual Machine Based Deep Learning Framework
Functions
dragon::cast Namespace Reference

Functions

template<typename DType , typename SType >
DType to (SType val)
 
template<>
float16 to< float16, float > (float val)
 
template<>
float to< float, float16 > (float16 val)
 
template<>
half to< half, float > (float val)
 
template<>
half2 to< half2, float > (float val)
 
template<>
half2 to< half2, float16 > (float16 val)
 
template<>
half to< half, float16 > (float16 val)
 

Function Documentation

◆ to()

template<typename DType , typename SType >
DType dragon::cast::to ( SType  val)

◆ to< float, float16 >()

template<>
float dragon::cast::to< float, float16 > ( float16  val)
inline

◆ to< float16, float >()

template<>
float16 dragon::cast::to< float16, float > ( float  val)
inline

◆ to< half, float >()

template<>
half dragon::cast::to< half, float > ( float  val)
inline

◆ to< half, float16 >()

template<>
half dragon::cast::to< half, float16 > ( float16  val)
inline

◆ to< half2, float >()

template<>
half2 dragon::cast::to< half2, float > ( float  val)
inline

◆ to< half2, float16 >()

template<>
half2 dragon::cast::to< half2, float16 > ( float16  val)
inline