Data Structures | Public Member Functions | Static Public Member Functions | Friends
ngraph::bfloat16 Class Reference

Public Member Functions

 bfloat16 (float value)
 
std::string to_string () const
 
size_t size () const
 
template<typename T >
bool operator== (const T &other) const
 
template<typename T >
bool operator!= (const T &other) const
 
template<typename T >
bool operator< (const T &other) const
 
template<typename T >
bool operator<= (const T &other) const
 
template<typename T >
bool operator> (const T &other) const
 
template<typename T >
bool operator>= (const T &other) const
 
template<typename T >
bfloat16 operator+ (const T &other) const
 
template<typename T >
bfloat16 operator+= (const T &other)
 
template<typename T >
bfloat16 operator- (const T &other) const
 
template<typename T >
bfloat16 operator-= (const T &other)
 
template<typename T >
bfloat16 operator* (const T &other) const
 
template<typename T >
bfloat16 operator*= (const T &other)
 
template<typename T >
bfloat16 operator/ (const T &other) const
 
template<typename T >
bfloat16 operator/= (const T &other)
 
 operator float () const
 
uint16_t to_bits () const
 

Static Public Member Functions

static std::vector< float > to_float_vector (const std::vector< bfloat16 > &)
 
static std::vector< bfloat16from_float_vector (const std::vector< float > &)
 
static constexpr bfloat16 from_bits (uint16_t bits)
 
static uint16_t round_to_nearest_even (float x)
 
static uint16_t round_to_nearest (float x)
 
static uint16_t truncate (float x)
 

Friends

std::ostream & operator<< (std::ostream &out, const bfloat16 &obj)
 

The documentation for this class was generated from the following file: