PyTorch
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
c10::Half Struct Reference

#include <Half.h>

Classes

struct  from_bits_t
 

Public Member Functions

 Half ()=default
 
constexpr Half (unsigned short bits, from_bits_t)
 
 Half (float value)
 
 operator float () const
 

Static Public Member Functions

static constexpr from_bits_t from_bits ()
 

Public Attributes

unsigned short x
 

Constructor & Destructor Documentation

◆ Half() [1/3]

c10::Half::Half ( )
default

◆ Half() [2/3]

constexpr c10::Half::Half ( unsigned short  bits,
from_bits_t   
)
inlineconstexpr

◆ Half() [3/3]

c10::Half::Half ( float  value)
inline

Member Function Documentation

◆ from_bits()

static constexpr from_bits_t c10::Half::from_bits ( )
inlinestaticconstexpr

◆ operator float()

c10::Half::operator float ( ) const
inline

Member Data Documentation

◆ x

unsigned short c10::Half::x

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