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

#include <float8.h>

Classes

struct  FromBitsT
 

Public Member Functions

 Float8E5M2 ()=default
 
constexpr ORT_HOST_DEVICE Float8E5M2 (unsigned char bits, FromBitsT)
 
ORT_HOST_DEVICE Float8E5M2 (float v, bool saturate=true)
 
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

uint8_t val {0}
 

Detailed Description

Definition at line 344 of file float8.h.

Constructor & Destructor Documentation

onnxruntime::Float8E5M2::Float8E5M2 ( )
default
constexpr ORT_HOST_DEVICE onnxruntime::Float8E5M2::Float8E5M2 ( unsigned char  bits,
FromBitsT   
)
inline

Definition at line 354 of file float8.h.

ORT_HOST_DEVICE onnxruntime::Float8E5M2::Float8E5M2 ( float  v,
bool  saturate = true 
)
inlineexplicit

Definition at line 356 of file float8.h.

Member Function Documentation

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

Definition at line 353 of file float8.h.

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

Definition at line 461 of file float8.h.

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

Definition at line 418 of file float8.h.

Member Data Documentation

uint8_t onnxruntime::Float8E5M2::val {0}

Definition at line 345 of file float8.h.


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