Skip to content

Convert single precision float to bfloat16 (Brain Floating Point) floating-point format

Notifications You must be signed in to change notification settings

guoheng/bfloat16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bfloat16

Convert single precision float to bfloat16 (Brain Floating Point) floating-point format

Build the shared lib

g++ -shared -c -fPIC fp32tobf16.c -o fp32tobf16.o
g++ -shared -Wl,-soname,fp32tobf16.so -o fp32tobf16.so fp32tobf16.o

To binnd with python, see test_fp32tobf16.py

About

Convert single precision float to bfloat16 (Brain Floating Point) floating-point format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published