Created by: wozna
PR types
Others
PR changes
Others
Describe
PR adds bfloat16 data type implementation with a test for this type. Formats of float32 and bfloat16 are presented in the picture below. The implementation of bfloat16 focuses on the conversion from float to bfloat16, which involves copying the first 2 bytes from float and saving them as bfloat16. The rest of the conversion from other types is done using the default conversion to float and then to bfloat16.
This is the first step associated with model inference on bfloat16 using the OneDNN library on supporting devices such as Cooper Lake.
This PR does not need verification on Cooper Lake, because it is a universal implementation of the bfloat16 data type.