HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::BFloat16 Struct Reference

#include <float16.h>

Classes

struct  FromBitsT
 

Public Member Functions

 BFloat16 ()=default
 
constexpr ORT_HOST_DEVICE BFloat16 (unsigned short bits, FromBitsT)
 
ORT_HOST_DEVICE BFloat16 (float v)
 
ORT_HOST_DEVICE float ToFloat () const
 
ORT_HOST_DEVICE operator float () const
 

Static Public Member Functions

static constexpr
ORT_HOST_DEVICE FromBitsT 
FromBits ()
 

Public Attributes

uint16_t val {0}
 

Detailed Description

Definition at line 42 of file float16.h.

Constructor & Destructor Documentation

onnxruntime::BFloat16::BFloat16 ( )
default
constexpr ORT_HOST_DEVICE onnxruntime::BFloat16::BFloat16 ( unsigned short  bits,
FromBitsT   
)
inline

Definition at line 52 of file float16.h.

ORT_HOST_DEVICE onnxruntime::BFloat16::BFloat16 ( float  v)
inline

Definition at line 54 of file float16.h.

Member Function Documentation

static constexpr ORT_HOST_DEVICE FromBitsT onnxruntime::BFloat16::FromBits ( )
inlinestatic

Definition at line 51 of file float16.h.

ORT_HOST_DEVICE onnxruntime::BFloat16::operator float ( ) const
inline

Definition at line 108 of file float16.h.

ORT_HOST_DEVICE float onnxruntime::BFloat16::ToFloat ( ) const
inline

Definition at line 81 of file float16.h.

Member Data Documentation

uint16_t onnxruntime::BFloat16::val {0}

Definition at line 43 of file float16.h.


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