• Robert Kimball's avatar
    bfloat16 testing and fixes (#2693) · 667d8f9e
    Robert Kimball authored
    * add test file
    
    * add new float_util files
    
    * Add unit tests for bfloat. Fix bfloat rounding code since it was incorrectly rounding.
    
    * add more tests
    
    * cleanup
    
    * change trucate to be endian agnostic
    
    * prep work for constexpr ctors
    
    * ready for constexpr
    
    * constexpr ctor for bfloat16
    
    * more bfloating
    
    * write constexpr isnan since it is not constexpr on Macos
    
    * remove cast operator
    
    * add benchmark test and cleanup
    
    * use aligned buffers for benchmark tests
    
    * fix numbers printed in benchmark
    
    * remove union and use cast operator
    
    * all tests passing
    
    * cleanup
    667d8f9e
Name
Last commit
Last update
..
autodiff Loading commit data...
CMakeLists.txt Loading commit data...
all_close.hpp Loading commit data...
all_close_f.cpp Loading commit data...
all_close_f.hpp Loading commit data...
float_util.cpp Loading commit data...
float_util.hpp Loading commit data...
matcher.hpp Loading commit data...
ndarray.hpp Loading commit data...
random.hpp Loading commit data...
test_control.cpp Loading commit data...
test_control.hpp Loading commit data...
test_tools.cpp Loading commit data...
test_tools.hpp Loading commit data...