This follows logic of ONNX's https://onnx.ai/onnx/technical/float8.html
Can be used to enumerate all values in float and hex for all 4 types of Floating points
To build main.cpp file,
- mkdir build
- cd build
- cmake ..
Note that PyTorch logic doesn't use saturation and will return NaNs for any value that is not representable in FP8 range. MIGraphX logic has "Clip" as template parameter that can be used to saturate.