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

#include <float8.h>

Classes

struct  FromBitsT
 

Public Member Functions

 Float8E4M3FN ()=default
 
constexpr ORT_HOST_DEVICE Float8E4M3FN (unsigned char bits, FromBitsT)
 
ORT_HOST_DEVICE Float8E4M3FN (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 28 of file float8.h.

Constructor & Destructor Documentation

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

Definition at line 37 of file float8.h.

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

Definition at line 39 of file float8.h.

Member Function Documentation

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

Definition at line 36 of file float8.h.

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

Definition at line 148 of file float8.h.

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

Definition at line 105 of file float8.h.

Member Data Documentation

uint8_t onnxruntime::Float8E4M3FN::val {0}

Definition at line 29 of file float8.h.


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