tenzr::bfloat16¶
16-bit brain floating-point element type stored as raw bits.
#include <dtype.h>
Public Functions¶
| Name | |
|---|---|
| bfloat16() =default | |
| bfloat16(float value) | |
| bfloat16(double value) | |
| operator float() const | |
| operator double() const |
Public Attributes¶
| Name | |
|---|---|
| uint16_t | bits |
Friends¶
| Name | |
|---|---|
| bool | operator==(const bfloat16 & , const bfloat16 & ) |