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

bfloat16 (Brain Floating Point) data type More...

#include <onnxruntime_cxx_api.h>

Public Member Functions

constexpr BFloat16_t () noexcept
 
constexpr BFloat16_t (uint16_t v) noexcept
 
constexpr operator uint16_t () const noexcept
 
constexpr bool operator== (const BFloat16_t &rhs) const noexcept
 
constexpr bool operator!= (const BFloat16_t &rhs) const noexcept
 

Public Attributes

uint16_t value
 

Detailed Description

bfloat16 (Brain Floating Point) data type

It is necessary for type dispatching to make use of C++ API The type is implicitly convertible to/from uint16_t. The size of the structure should align with uint16_t and one can freely cast uint16_t buffers to/from Ort::BFloat16_t to feed and retrieve data.

See also code examples for Float16_t above.

Definition at line 188 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

constexpr Ort::BFloat16_t::BFloat16_t ( )
inlinenoexcept

Definition at line 190 of file onnxruntime_cxx_api.h.

constexpr Ort::BFloat16_t::BFloat16_t ( uint16_t  v)
inlinenoexcept

Definition at line 191 of file onnxruntime_cxx_api.h.

Member Function Documentation

constexpr Ort::BFloat16_t::operator uint16_t ( ) const
inlinenoexcept

Definition at line 192 of file onnxruntime_cxx_api.h.

constexpr bool Ort::BFloat16_t::operator!= ( const BFloat16_t rhs) const
inlinenoexcept

Definition at line 194 of file onnxruntime_cxx_api.h.

constexpr bool Ort::BFloat16_t::operator== ( const BFloat16_t rhs) const
inlinenoexcept

Definition at line 193 of file onnxruntime_cxx_api.h.

Member Data Documentation

uint16_t Ort::BFloat16_t::value

Definition at line 189 of file onnxruntime_cxx_api.h.


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